Android - Play Store - Change expiration date of a subscription

痞子三分冷 提交于 2019-12-24 05:49:47

问题


I want to change the expiration date of a Subscription in my Play Store using the Play Store API.

I have a Mobile App where you can buy a renewal Play Store Subscription or you can get some time for free from Promos in app.

The main problem here is that if you have bought a subscription from the Play Store and you want to add time by a Promo in the application, I can't change the Renewal date of your subscription to handle this new time added into your Premium. So, the Play Store is going to renew your subscription and take the payment in a wrong date.

How can I handle this situation??

iOS CASE: iOS - App Store - Change expiration date of a subscription


回答1:


The solution for this problem, is use Defer. With this we can modify the next billing date, and move it to the future the days we need.

Documentation https://developers.google.com/android-publisher/api-ref/purchases/subscriptions/defer



来源:https://stackoverflow.com/questions/54058379/android-play-store-change-expiration-date-of-a-subscription

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!