0

Data flow for a purchase request with Google In-App-Billing V2 is :

Google In-App-Billing V2

The last part (CONFIRM_NOTIFICATIONS) allows developers to confirm that the item was successfully delivered to the user.

in V3, transaction is confirmed as soon as "onActivityResult()" is called. My question is : how to "cancel" a transaction when error/exception occurs ?

Thank you

johann
  • 1,115
  • 8
  • 34
  • 60

1 Answers1

1

There's no API to cancel a purchase through the Google Wallet Merchant. You have to do it manually.

tomrozb
  • 25,773
  • 31
  • 101
  • 122
  • Thank you. How can I handle crashes ? (User will be debited but item won't be delivered). Should I call the consumePurchase() method in a try/catch ? Thank you – johann Feb 25 '15 at 07:52
  • Item will be stored in the lAB inventory until you consume it. Even if your app would crash during purchase the item should be delivered and available in the inventory. – tomrozb Feb 25 '15 at 07:57