Restore transaction inapp purchase android

2019-01-25 19:17发布

问题:

How to do restore transaction in in-app billing purchase android. So far I have searched in all links. I didn't find exact infromation. I have used BillingHelper.restoreTransactionInformation(BillingSecurity.generateNonce()) but it returns nothing.
Can anyone help me to come out of this problem.

Any help would be appreciated.

回答1:

The V3 of the api does not require anymore to restore the purchases. Can directly query for purchased items.

Please read the section Querying for Purchased Item of: http://developer.android.com/google/play/billing/billing_integrate.html
and the getPurchases() method description.