scope=https://www.proxy.ustclug.org/auth/androidpublisher&response_type=code&access_type=offline&redirect_uri 请求接口:https://www.proxy.ustclug.org/androidpublisher/v2/applications/packageName/purchases/products/productId 就是订单中purchaseToken 返回数据 1 2 3 4 5 6 7 { "kind": "androidpublisher#productPurchase kind string This kind represents an inappPurchase object in the androidpublisher service. kind string This kind represents an inappPurchase object in the androidpublisher service.
google_client->useApplicationDefaultCredentials(); $google_client->addScope(\Google_Service_AndroidPublisher ::ANDROIDPUBLISHER); $androidPublishService = new \Google_Service_AndroidPublisher($google_client notify['oneTimeProductNotification']['purchaseToken'], new \Google\Service\AndroidPublisher
google_client->useApplicationDefaultCredentials(); $google_client->addScope(\Google_Service_AndroidPublisher ::ANDROIDPUBLISHER); $androidPublishService = new \Google_Service_AndroidPublisher($google_client
scope=https://www.googleapis.com/auth/androidpublisher&response_type=code&access_type=offline&redirect_uri api项目是的clientId(客户端ID) client_secret=创建api项目时的clientSecret(客户端密钥) image.png setp9 查询订单状态 https://androidpublisher.googleapis.com /androidpublisher/v3/applications/{packageName}/purchases/products/{productId}/tokens/{token}? "GPA.3398-6726-1036-80298",//google订单号 "purchaseType": 0, "acknowledgementState": 0, "kind": "androidpublisher
SIGNATURES APP_TITLE = "APP TITLE" LANGUAGE_CODE = "EN_US" scope = "https://www.googleapis.com/auth/androidpublisher