在 Android 中实现应用内购买?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/2022945/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Implementing In App purchases in Android?
提问by hpique
Edit: Android now supports in-app billing!
编辑:Android 现在支持应用内计费!
Original question:
原问题:
It looks like Android won't natively support in-app purchases for a while, and when it does there might be a huge user base with devices that don't support them.
看起来 Android 在一段时间内不会原生支持应用内购买,当它支持时,可能会有庞大的用户群使用不支持它们的设备。
What's the best way to implement iPhone-like (additional content or services) in-app purchases in Android using the Android Market if possible?
如果可能,使用 Android Market 在 Android 中实现类似 iPhone 的(附加内容或服务)应用内购买的最佳方式是什么?
The solution should consider in particular:
解决方案应特别考虑:
- For all kinds of in-app purchases: Android Market's 24-hour cancellation policy
- For consumables/non-consumables: storage of additional content (ie: use precious application memory to avoid piracy, or use SD card to avoid bloating application memory)
- 对于各种应用内购买:Android Market 的 24 小时取消政策
- 对于消耗品/非消耗品:存储附加内容(即:使用宝贵的应用程序内存避免盗版,或使用 SD 卡避免应用程序内存膨胀)
Thanks!
谢谢!
采纳答案by fernferret
This has changed as of today! There is now an example on the Android Developer site here: https://developer.android.com/google/play/billing/billing_overview
从今天开始,这已经改变了!Android 开发人员网站上现在有一个示例:https: //developer.android.com/google/play/billing/billing_overview
回答by Alex Volovoy
You can create a premium key application, that will have a key. How you expose that it's your deal ( or you can just check if PremiumKey activity exist ). From the main app you just check for your key and if it's exist enable premium option ) If you're talking about buying OTHER apps from yours - build your list with market url pointed to the other apps ( market:// )
您可以创建一个带有密钥的高级密钥应用程序。您如何公开这是您的交易(或者您可以检查是否存在 PremiumKey 活动)。从主应用程序中,您只需检查您的密钥,如果它存在,请启用高级选项)如果您正在谈论从您那里购买其他应用程序 - 使用指向其他应用程序的市场 URL 构建您的列表(市场://)
回答by Draemon
It is against the Android Market Developer Distribution Agreementto take in-app payment:
进行应用内支付违反Android Market 开发者分发协议:
3.3 ... All fees received by Developers for Products distributed via the Market must be processed by the Market's Payment Processor.
3.3 ... 开发者就通过市场分发的产品收取的所有费用必须由市场的支付处理器处理。
回答by Samik R
回答by Christopher Orr
You say that Android Market doesn't support in-app purchases, and then ask how you can implement in-app purchases using Android Market?(!)
你说Android Market不支持应用内购买,然后问你如何使用Android Market实现应用内购买?(!)
Anyway, if and when they do support it, I imagine it could be distributed as an update to the Android Market application itself, so most users would be able to use the functionality. I believe the Market app updates itself automatically.
无论如何,如果他们确实支持它,我想它可以作为对 Android Market 应用程序本身的更新分发,因此大多数用户将能够使用该功能。我相信市场应用程序会自动更新。
Possibly the Market would accept an Intent
to trigger a payment via the usual on-device mechanism and return your app (or more likely your server) a callback.
可能市场会接受Intent
通过通常的设备上机制触发付款并返回您的应用程序(或更可能是您的服务器)回调。
回答by Jaime Botero
Here's another free licensing and payments system. The nice thing about this one is that it allows you to offer your app in any app store.
这是另一个免费的许可和支付系统。这个的好处是它允许您在任何应用程序商店中提供您的应用程序。
You can find more details @ http://www.cloud4apps.com/
你可以找到更多细节@ http://www.cloud4apps.com/
回答by Alex
There is also another in-app payment platform for Android applications called MoVend (www.movend.com). I have checked it out and there are several benefits using it compared to the other 2 mentioned earlier:
还有另一个适用于 Android 应用程序的应用程序内支付平台,称为 MoVend (www.movend.com)。我已经检查过了,与前面提到的其他两个相比,使用它有几个好处:
Many payment channels : Operator Billing for more than 38 countries, PayPal and virtual credits.
许多支付渠道:超过 38 个国家的运营商计费、PayPal 和虚拟信用。
Many distribution channels: They work with developers to distribute their applications through the various distribution channels like Operator AppStores , OEMs and Android applications website. Marketing is something we all need. They are also invested by Singapore Telecommunications who has a strong presence in South East Asia.
许多分发渠道:他们与开发人员合作,通过运营商 AppStores、OEM 和 Android 应用程序网站等各种分发渠道分发他们的应用程序。营销是我们都需要的东西。他们还由在东南亚拥有强大影响力的新加坡电信投资。
They provide a sales analytics for you to track, trace and monitor the performance of your apps. Since they are available worldwide, you can always tailor your applications to the different geography area.
它们为您提供销售分析来跟踪、追踪和监控您的应用程序的性能。由于它们在全球范围内可用,因此您始终可以针对不同的地理区域定制您的应用程序。
I am trying to build Android applications and monetizing is important.
我正在尝试构建 Android 应用程序,货币化很重要。
Reply this thread so we can discuss how we can monetize our Android applications.
回复此线程,以便我们讨论如何通过 Android 应用程序获利。
回答by dzdroid
Check out http://mobpaynet.com, they are doing something like this. Not sure if it violates terms or not, but I will probably check it out.
查看http://mobpaynet.com,他们正在做这样的事情。不确定它是否违反条款,但我可能会检查一下。
回答by Denis Maslov
For implementing in-app purchases in Air applications you may use third-party libs (Adobe AIR does not support In App Purchases for any platforms out of the box). For example, developed by Milkman Games(unfortunately, they are not free)
为了在 Air 应用程序中实现应用内购买,您可以使用第三方库(Adobe AIR 不支持任何开箱即用的平台的应用内购买)。例如,由Milkman Games开发(不幸的是,它们不是免费的)