• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Inapp One time purchase problem

khabbab

Lurker
Hi,

I am building an android application and wants to have a feature of inapp buying. The user will purchase the full version one time only. I do not want any checkout screen to appear. Instead i just want to show a message that "Do you want to purchase abc product for 2$?" If user chooses yes then i should get a response from google if purchase successful or not.

Is checkout screen mandatory? I am following Blundell blog tutorial to achieve the functionality. Right now this is what is happening in request purchase:

PendingIntent pendingIntent = (PendingIntent) response.get("PURCHASE_INTENT");

pendingIntent.send(context, 0, new intent());

I get a blank screen. When i move away from this screen, the broadcast receiver is activated and i receive "Purchase successful" in OnRecieve method of receiver. I am using product android.test.item_purchased.

Thanks
 
Back
Top Bottom