Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to upgrade/downgrade subscriptions in Android InAppBilling?

I spent a week looking for solution to upgrade/downgrade subscriptions on Android InAppBilling.

There's a reference page about this function: http://developer.android.com/google/play/billing/billing_reference.html

Google said that we could use getBuyIntentToReplaceSkus() method, but I couldn't found any documentation about that in its signature. I can't also see it in IInAppBillingService.aidl file that Google provided.

Is there any one who may help me?

like image 955
Tuan Nguyen Avatar asked Apr 28 '15 09:04

Tuan Nguyen


People also ask

What is grace period in Play Store?

During a grace period, the user should retain access to subscription benefits. Before a subscription enters into account hold, Google makes additional attempts to charge the payment method for up to 24 hours. The user retains subscription benefits during this period.


1 Answers

Just use my aidl file and be happy :)

It works perfectly!

https://gist.github.com/cre8ivejp/21b10fbbc7e500f99059

*Do not change the order of the methods inside aidl file or it will not work.

like image 75
gaijinboy Avatar answered Sep 24 '22 16:09

gaijinboy