Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cancel In app Billing Subscription in android

In my app , there is functionality called in app subscription which is auto renewal . In app there is a feature called "Cancel Upgrade".

What I want is If user cancel the subscription then his/her subcription will be cancelled not refundable but just cancelled.

I go through this link and found below note:

You cannot use the API to issue refunds or cancel In-app Billing transactions. You must do this manually through your Google payments merchant account. However, you can use the API to retrieve order information.

But i want my user to cancel his/her upgrade.

Is there any way to do this or please provide alternate solution for this.

Thanks in advance.

like image 455
KishuDroid Avatar asked Sep 29 '15 12:09

KishuDroid


People also ask

Is there a way to cancel in app purchases?

Find and tap the app you would like an in-app purchase refund for. 3. Tap the “Refund” button. 4.


2 Answers

From the in app subscription guide,

Users can view the status of all of their subscriptions and cancel them if necessary from the My Apps screen in the Play Store app. Currently, the In-app Billing API does not provide support for programatically canceling subscriptions from inside the purchasing app.

Thus, the user won't be able to cancel their subscription from the app itself, but you can invite them to viist the My Apps section on the Play Store to cancel it.

like image 195
Andrea Avatar answered Oct 19 '22 03:10

Andrea


You can try Google Play Developer API, a REST-based web service that includes Subscriptions and In-App Purchases API

Purchases.subscriptions: cancel

Cancels a user's subscription purchase. The subscription remains valid until its expiration time.

User Billing

Google Play provides a purchase token back to the purchasing app through the In-app Billing API. Your apps can store the token locally or pass it to your backend servers, which can then use it to validate or cancel the subscription remotely using the Google Play Developer API.

like image 27
random Avatar answered Oct 19 '22 04:10

random