本文介绍了Android应用内购买订阅并提供免费试用-如何避免滥用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在寻找如何最好地解决此问题的指导...我已阅读 Google Play应用内订阅(http://developer.android.com/google/play/billing/billing_subscriptions.html )和实施订阅( http://developer.android.com/google/play/billing/billing_integrate.html#Subs ),但我仍然没有找到避免滥用的方法.

I've searched high and low for guidance on how best to address this...I've read Google Play In-App Subscriptions (http://developer.android.com/google/play/billing/billing_subscriptions.html) and the section on Implementing Subscriptions (http://developer.android.com/google/play/billing/billing_integrate.html#Subs) but I still don't see a way to avoid abuse.

我还在这里看到了相关的问题- Google Inapp购买和试用期.但是,使用SharedPreferences相对容易滥用.

I've also seen the related question here - Google Inapp purchasing and trial period. However, using the SharedPreferences is subject to relatively easy abuse.

我有一个需要订阅才能使用全部功能的应用程序.我设置了按月订阅的应用内购买产品,例如ID ="myapp.subscription.monthly",每月费用为0.99美元.我想给人们一个体验全部功能的机会,所以我给"myapp.subscription.monthly"一个30天的试用期.

I have an app that will require a subscription for full functionality. I set up a monthly subscription in-app purchase product, say ID = "myapp.subscription.monthly", costing $0.99/month.I want to give people a chance to experience the full functionality, so I give "myapp.subscription.monthly" a 30-day trial period.

当用户首次安装该应用程序时,系统会提示他们购买每月订阅,向他们收取$ 0.00的费用,并告知从现在起30天之后,他们的卡将开始每月收取$ 0.99的费用.

When the user installs the app for the first time, they are prompted to purchase the monthly subscription, they are charged $0.00 and told that starting 30 days from now their card will start getting charged $0.99/month.

当我的应用程序调用"getPurchases()"时,将返回他们已订阅的事实.

When my app calls "getPurchases()", the fact that they have a subscription will be returned.

如果他们在免费试用期内取消,或者说在结帐几个月后,根据实施"部分,对"getPurchases()"的调用不会返回任何内容:

If they cancel during the free trial, or say after a couple of months of billing, a call to "getPurchases()" returns nothing, according to the "Implementing" section:

由于用户没有有效的订阅,因此我的应用程序将提示他们购买订阅以获取全部功能.再次,他们将获得30天的免费试用期.

Since the user has no active subscriptions, my app will prompt them to purchase the subscription for full functionality. Again, they will get the 30-day free trial.

我曾考虑过要购买第二个订阅产品,例如"myapp.subscription.monthly.no.free.trial",那么我将可以购买该产品.但是,由于无法询问Google Play用户曾经是否曾经购买过订阅,我的应用无法得知该用户是否应该提供免费试用"产品.

I've thought about having a second subscription product, say "myapp.subscription.monthly.no.free.trial" and I would have that be the available item for purchase. However, without a way to ask Google Play if the user ever previously purchased a subscription, my app can't know that is should be offering the "no free trial" product.

那么,如何避免有人反复订阅和取消以保持30天免费期?有没有办法向Google Play询问完整的购买记录?

So, how to avoid someone just subscribing and cancelling over and over to keep getting the free 30 days? Is there a way to ask Google Play for the complete purchase history?

推荐答案

Google Play商店自动处理此问题

如果您的用户取消了免费试用,然后尝试进行购买,则系统将显示给他/她$ 0.99,而不是再次提供免费试用.但是,如果用户在取消免费试用后支付了0.99美元,则仅在取消的免费试用期结束后才开始实际计费.

If your user cancels the free trial and then tries to make a purchase, he/she will be shown the $0.99 rather than giving a Free trial again. But, if the user pays the $0.99 after canceling the free trial, the actual billing will only start after the canceled Free trial period has ended.

如果有任何方式可以知道产品是否在客户端具有免费试用版,这将很有帮助.希望尽快将其放入应用内结算API.

It would have been helpful if there was any way to know whether a product has a free trial or not on the client side. Hope that will be put into the In-App Billing API soon.

这篇关于Android应用内购买订阅并提供免费试用-如何避免滥用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-09 21:27