Question

The sample code for the in-app feature has:

onPurchaseStateChange(PurchaseState purchaseState, String itemId,
            int quantity, long purchaseTime, String developerPayload)

and it brings information on the in-app purchase that was made (id, how much etc.).

I am missing the price that was paid in the transaction. How do I get it?

Was it helpful?

Solution

afaik there is currently no way to query the price from an in app item. you have to store the price offline in your app or on your own server. this is especially annoying since the price can vary by region and/or currency.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top