Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Play Billing (testing mode): why my purchase is automatically canceled

I followed all the best practices from Google Developer Doc: https://developer.android.com/google/play/billing/billing_library_overview

I push my App in Beta test mode. All works perfectly, except at each time I do in-app (or subscription) purchase, I receive an email (purchase confirmation, OK), then 5-6 minutes later I receive another email (always from Google) to inform my purchase has been canceled...

I don't want an automatic cancel. Why this process?

Thank you very much guys!

like image 995
anthony Avatar asked Sep 10 '19 11:09

anthony


People also ask

Why was my Google Play purchase Cancelled?

Cancelled purchases are likely to occur if your billing address, and/or the name registered in your Google Wallet is different than the one on your credit card.

How do I test my Google Play billing library integration?

To test your Google Play Billing Library integration using test tracks, do the following: Publish your app to a test track . Note that after you publish an app to a testing track, it can take a few hours for the app to be available for testers.

How do I cancel a test purchase on Google Play?

Wait for the transactions to expire—Google Play clears completed test purchases 14 days after their purchase date. Cancel purchases manually—you can go to the Google payments merchant center, look up the transaction, and then cancel it. You can find transactions by looking up their order numbers.

What are Google Play test purchases?

They let authorized user accounts make purchases of your in-app products through Google Play without incurring any actual charges to the user accounts. Once authorized for testing access, those users can make purchases without being charged. Test purchases are real orders and Google Play processes them in the same way as other orders.

What happens if I cancel my Google Play purchase?

After an order is canceled, it can’t be reinstated. User returns a paid app: After purchasing a paid app, a user has up to 2 hours to return it for a full refund. They can only return an app once. If they purchase the same app again, they won’t be able to return it a second time. User requests a refund: Users can request a refund on Google Play.


3 Answers

According to Google doc, Subscription ends after 6 renewals.

See this table for more info.

enter image description here

You can see full details by clicking above link and go to Test Cases section and click on SHOW/HIDE button.

like image 101
Chirag Savsani Avatar answered Sep 29 '22 17:09

Chirag Savsani


Check out this doc

You have to call billingClient.acknowledgePurchase() method when you get purchase.purchaseState === Purchase.PurchaseState.PURCHASED on onPurchasesUpdated callback, otherwise your purchased will be automatically refunded/cancelled.

Further reference

like image 35
Chintan Raghwani Avatar answered Sep 29 '22 15:09

Chintan Raghwani


Because you are in testing mode so Subscription will be automatically renewed after 5 minutes. If you have disabled Auto-renewal, it will not renew. From my point of view, the auto cancellation will help you testing the subscription flow so it doesn't make sense to disable it.

While making the purchase in test mode, you will see something like $12/5 minute in the top right corner of bottom sheet from Google Play IAP. for more information and detailed guide about IAP you can always visit the Official Docs for Google IAP.

like image 30
Kiran Maniya Avatar answered Sep 29 '22 15:09

Kiran Maniya