anthony
anthony

Reputation: 7733

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!

Upvotes: 16

Views: 7778

Answers (4)

Sarkheel Mughal
Sarkheel Mughal

Reputation: 91

i was facing same issue and the reason is we are in test environment and the solution is to remove your email from tester list in your google play console.

Upvotes: 0

Kiran Maniya
Kiran Maniya

Reputation: 8979

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.

Upvotes: 9

Chirag Savsani
Chirag Savsani

Reputation: 6140

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.

Upvotes: 5

Chintan Raghwani
Chintan Raghwani

Reputation: 3370

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

Upvotes: 8

Related Questions