Android 订阅及支付

发布于 2024-12-10 11:35:51 字数 469 浏览 0 评论 0原文

在我的应用程序中,我想实现订阅服务。订阅大部分是每年一次。订阅到期后,申请者应要求续订订阅并进行付款和结帐流程。

我检查了 Android 许可和应用内计费,但​​我找不到任何可以在我的案例中使用的帮助完整的东西,因为我发现“目前,Android Market 不支持订阅计费。请注意,通过收取付款Android 市场开发者分发协议不允许您的应用程序。”在此链接上http://www. google.com/support/androidmarket/developer/bin/answer.py?hl=zh-CN&answer=140504

如何在我的应用程序中实施订阅和付款流程?

请帮帮我。

谢谢。

In my application i want to implement Subscription service. Subscription will be mostly yearly. After subscription expiration application should ask for subscription renewal and go for payment and checkout process.

I checked for Android Licensing and in-app billing but i couldn't found any thing help full that i can use in my case as there i found that "Currently, Android Market doesn't support subscription billing. Please note that collecting payments through your application is not allowed under the Android Market Developer Distribution Agreement." on this link http://www.google.com/support/androidmarket/developer/bin/answer.py?hl=en&answer=140504.

How can i implement subscription and payment process in my application?

Please help me out.

Thank You.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

羁绊已千年 2024-12-17 11:35:51

我会执行以下操作:

  • 通过应用内购买出售订阅。当用户实际购买时,您将在第一年向他们收取费用,并在数据存储(本地或服务器端)上记下购买数据。
  • 在年底之前,您提醒用户购买下一年的“订阅”,并执行相同的操作。

这样做的缺点是,用户很容易不支付下一年的费用,但无论如何,谁愿意作恶呢。

另一种方法是通过 PayPal 使用订阅 (http://techcrunch.com/2010/05/19/paypal-launches-in-app- payment-library-for-android/),但我有从未使用过他们的服务,也不知道其关于 Android Market 条款的状态。 (请参阅:https://stackoverflow.com/questions/2787738/paypal -as-in-app- payment-model-in-android

I would do the following:

  • Sell the subscription through the in-app purchase. When the user actually purchase it, you bill them for the first year, and note down the purchase data on your datastore (local or on the server side).
  • Before the year ends, you alert the user to purchase the next year's "subscription", and do the same.

This has the disadvantage of making it very easy for the user to not pay the next year's fee, but who want's to be evil anyway.

An alternative would be to use the subscription through PayPal (http://techcrunch.com/2010/05/19/paypal-launches-in-app-payment-library-for-android/), but I have never used their service, and do not know its status w.r.t. Android Market's Terms. (see: https://stackoverflow.com/questions/2787738/paypal-as-in-app-payment-model-in-android)

堇色安年 2024-12-17 11:35:51

是的。我有几个实现应用内购买的应用程序。 Google 这里有一个很好的教程:http://developer.android。 com/guide/market/billing/billing_integrate.html#billing-download 其中包含示例代码,您可以将其下载到您的计算机上、修改和分发。

阅读他们的安全部分,因为最佳实践也需要混淆,以及对其示例代码进行一些常规修改,以帮助摆脱尝试从 APK 中剥离应用内购买代码的自动机器人。

另外 - 我始终将所有与购买相关的状态保留在 ObfuscatedPreferences 中(请参阅:http://code.google.com/p/marketlicensing/source/browse/library/src/com/android/vending/licensing/PreferenceObfuscator.java?r=9cd599d6902d8b9b8311e4ef8dd20dcccb5e7aba)破解应用程序有点困难。

Yes. I have several applications that implement in-app-purchase. Google has a good tutorial here: http://developer.android.com/guide/market/billing/billing_integrate.html#billing-download which includes sample code which you can download to your machine, modify and distribute.

Read their security section, as best practices also require obfuscation, and some general mangling of their sample code to help throw off automatic bots that try and strip off in-app-purchase code from the APK.

Also - I always keep all of the purchase related state in ObfuscatedPreferences (see: http://code.google.com/p/marketlicensing/source/browse/library/src/com/android/vending/licensing/PreferenceObfuscator.java?r=9cd599d6902d8b9b8311e4ef8dd20dcccb5e7aba) to make it a bit more difficult on cracking the app.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文