[TUT] Simple InApp Billing / Payment

Tutorials with advanced 'difficulty' and more Lines of Code.

Re: [TUT] Simple InApp Billing / Payment

Postby sarojini » Thu Feb 09, 2012 7:18 pm

Hi.,

It is very good work... keep it up............

I downloaded the in app purchase and ran in my device i got below error..........

Am new to in app purchse so please help me out from this one. its very urgent....

ERROR/BillingService(3741): Signature verification failed.
WARN/BillingService(3741): signature does not match data.
DEBUG/AndroidRuntime(3741): Shutting down VM

I put it my public key. even i got this error. but i dint enter my product id. where i have to put my product id?
if anyone face this issue please tell me. i have to finish this work tomorrow.



Please respond asap...
I
sarojini
Once Poster
Once Poster
 
Posts: 1
Joined: Thu Feb 09, 2012 6:55 pm

Top

Re: [TUT] Simple InApp Billing / Payment

Postby Murali5115 » Mon Feb 27, 2012 3:24 pm

Hi can some one tell me how can i get the purchased item to be downloaded to my device after payment process is done with android market..
Murali5115
Freshman
Freshman
 
Posts: 4
Joined: Thu Jan 12, 2012 8:36 am

in android 2.3.3 and above market doesnot return to the main

Postby pixy » Thu Mar 22, 2012 11:10 am

Hi!
I've used blundell package in my project for in app billing, but the major issue I see is, it works fine with OS version 2.2 and lower but in Os 2.3.3 and above the market opens up in browser and the after purchase is successfully done it never returns control to my activity from which I invoked the following method if (BillingHelper.isBillingSupported()) {
BillingHelper.requestPurchase(mContext, "1");
}
pixy
Freshman
Freshman
 
Posts: 2
Joined: Thu Mar 22, 2012 10:58 am

Re: [TUT] Simple InApp Billing / Payment

Postby pixy » Thu Mar 22, 2012 11:18 am

Murali5115 wrote:Hi can some one tell me how can i get the purchased item to be downloaded to my device after payment process is done with android market..




if (BillingHelper.latestPurchase.isPurchased()) {
Toast.makeText(mContext, "Item purchased", Toast.LENGTH_LONG)
.show();

}

inside this if block only write your code to download your data, this check confirms that purchase was successful
pixy
Freshman
Freshman
 
Posts: 2
Joined: Thu Mar 22, 2012 10:58 am

Re: [TUT] Simple InApp Billing / Payment

Postby NightJumper » Wed Apr 04, 2012 12:55 pm

How do i make a callback so that when the service is initiated it enables my button
NightJumper
Junior Developer
Junior Developer
 
Posts: 13
Joined: Sun Sep 05, 2010 7:54 pm

Re: [TUT] Simple InApp Billing / Payment

Postby blundell » Wed Apr 04, 2012 3:50 pm

Look at the onServiceConnected method, maybe have a handler that uses that.
User avatar
blundell
Master Developer
Master Developer
 
Posts: 1609
Joined: Tue Nov 18, 2008 12:58 pm
Location: UK

Top

Re: [TUT] Simple InApp Billing / Payment

Postby NightJumper » Wed Apr 04, 2012 8:12 pm

Sorry Im not too great with services, so found the onserviceconnected method, what would I do to be able to call something from my main activity in there
NightJumper
Junior Developer
Junior Developer
 
Posts: 13
Joined: Sun Sep 05, 2010 7:54 pm

Re: [TUT] Simple InApp Billing / Payment

Postby NightJumper » Thu Apr 05, 2012 12:42 pm

Im also getting a leaked serviceConnection everytime I close my app
NightJumper
Junior Developer
Junior Developer
 
Posts: 13
Joined: Sun Sep 05, 2010 7:54 pm

Re: [TUT] Simple InApp Billing / Payment

Postby Troog » Tue May 08, 2012 10:00 am

Hello,
I'm having quite the difficulty with trying to get this, as well as the dungeons example, to work on my phone. I've followed all the directions, as soon as I select the in-app billing example (it happens with the Simple InApp billing tutorial example and the Google Dungeons example), I get the "stopped unexpectedly" error right away. No window, no nothing, just the error and the force close button.

I have the HTC Droid Incredible 2 version 2.3.4, Google Play Store 3.5.16, and the email attached to the phone is not my dev email, and is set for testing.

Just to let you know, all I want is to make a very simple app that lets people donate $1-$2 for the free app I created, if they so wish. Trying to figure this billing stuff is a nightmare.

Any assitance is greatly appreciated.
Thanks,

troog
Troog
Once Poster
Once Poster
 
Posts: 1
Joined: Tue May 08, 2012 9:47 am

Top
Previous

Return to Advanced Tutorials

Who is online

Users browsing this forum: No registered users and 7 guests