简体   繁体   English

我需要验证Android应用内结算服务器端吗?

[英]Do I need to verify Android in-app billing server side?

I want to implement Google Play In-app Billing v3 on an Android app so that the user can buy an item to remove ads. 我想在Android应用上实施Google Play应用内结算v3,以便用户可以购买商品以删除广告。 After the user buy this item, ads must not be displayed on any device logged into his/her Google account. 用户购买此商品后,不得在登录其Google帐户的任何设备上展示广告。 As this app does not provide user accounts, I don't have a unique user identifier. 由于此应用程序不提供用户帐户,因此我没有唯一的用户标识符。

Do I need to store and validate purchases on my server or can I just rely on the Google Play In-app Billing library? 我是否需要在服务器上存储和验证购买的商品,还是可以仅依靠Google Play应用内结算库?

Purchased items are linked to the Google account used during the purchase. 购买的商品链接到购买期间使用的Google帐户。 You don't need a server to implement ads removal premium purchase. 您无需服务器即可实施广告删除溢价购买。

Once the user purchases the item, IAB keeps track of it and syncs it across all devices the user is logged in. The most important thing is to NOT consume the item once it has been purchased. 用户购买商品后,IAB会跟踪该商品并在用户登录的所有设备上同步该商品。最重要的是,一旦购买该商品就不要消费。

Yes for querying the purchase you don't need owned server. 是的,用于查询不需要拥有服务器的购买。 But for extra security layer protection, you should have one. 但是,要获得额外的安全层保护,您应该拥有一个。

As described here Security and Design Best Practice 如此处所述, 安全性和设计最佳实践

So you should perform signature verification on your own server. 因此,您应该在自己的服务器上执行签名验证。 And you could put developer payload string on your own server too. 您也可以将开发人员有效负载字符串放在您自己的服务器上。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何通过Ruby服务器验证Android In-app Billing? - How do I verify Android In-app Billing with a server with Ruby? 我们如何验证服务器端的Android应用内结算收据? - How do we verify Android in-app billing receipt on the server side? 我可以直接使用Android Market服务器验证应用内结算的交易信息吗? - Can I verify the transaction information of in-app billing with the Android Market server directly? Android-要测试应用内结算,我需要向Android市场发布测试应用吗? - Android - to test in-app billing do I need to release a test application to android market? Android 应用内计费和自有数据服务器 - Android In-app Billing and own data server 如何使用Java(Servlet)验证针对应用内结算Android Market的签名数据 - how can I verify signed data coming for In-App Billing Android Market using Java (Servlet) android应用内结算安全验证方法始终返回false - android in-app billing Security verify method always return false 如何在我的服务器上验证Android应用内结算交易? - How do I verify Android in-app-billing transactions on MY server? 如何将代码传递到Android In App Billing中的应用内结算服务的代码? - Where do I put code to pass a request to the In-app Billing service in Android In App Billing? Android中的应用内结算 - In-App Billing in android
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM