Android - Play 商店 - 更改订阅的到期日期 [英] Android - Play Store - Change expiration date of a subscription

查看:47
本文介绍了Android - Play 商店 - 更改订阅的到期日期的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用 Play 商店 API 在我的 Play 商店中更改订阅的到期日期.

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

我有一个移动应用,您可以在其中购买更新的 Play 商店订阅,或者您可以从应用内的促销中免费获得一些时间.

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.

这里的主要问题是如果您从 Play 商店购买了订阅,并且您想通过应用程序中的 Promo 添加时间, 我无法更改订阅的续订日期来处理添加到您的 Premium 中的这个新时间.因此,Play 商店将续订您的订阅并在错误的日期接收付款.

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.

我该如何处理这种情况?

iOS 案例: iOS - App Store - 更改订阅的到期日期

推荐答案

这个问题的解决方案,就是使用Defer.有了这个,我们可以修改下一个计费日期,并将其移到我们需要的未来日期.

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.

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

这篇关于Android - Play 商店 - 更改订阅的到期日期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆