简体   繁体   English

Google Play应用内结算和网络

[英]Google Play In-App Billing and Web

I have an app that uses Google Play In-App billing. 我有一个使用Google Play应用内结算的应用。 This functions correctly, we have a subscription and this subscription can only be processed from within the app. 这项功能正常,我们有订阅,此订阅只能在应用程序内处理。

We also allow the users to check the same information from our website. 我们还允许用户从我们的网站查看相同的信息。

We are wondering if there is a way to get status of the subscription of the in-app billing from Google via the web. 我们想知道是否有办法通过网络从Google获取应用内结算的订阅状态。 From in app billing, we know the following information about the order: 在应用内结算中,我们了解有关订单的以下信息:

purchaseToken, packageName, purchaseState, orderId, purchaseTime, productId purchaseToken,packageName,purchaseState,orderId,purchaseTime,productId

Basically we would want to know if the subscription was still active from the web without using the In app billing. 基本上我们想要知道订阅是否仍在网上仍然有效,而不使用In app billing。

Yes, there is a Purchase Status API to get the status of the in-app billing from Google via http. 是的,有一个Purchase Status API可以通过http从Google获取应用内结算的状态。

Google Play provides an HTTP-based Purchase Status API that lets you remotely query the status of a specific in-app product or subscription, or cancel an active subscription. Google Play提供基于HTTP的购买状态API,可让您远程查询特定应用内商品或订阅的状态,或取消有效订阅。 The API is designed to be used from your backend servers as a way of securely managing in-app products and subscriptions, as well as extending and integrating them with other services. API旨在用于后端服务器,作为安全管理应用内产品和订阅的方式,以及将其与其他服务进行扩展和集成。

You can get an overview on the Android Developer Site and a reference on Google Developers . 您可以在Android开发者网站上获得概述,并参考Google Developers

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM