我正在iOS中实现自动续订订阅,并且希望能够测试用户取消订阅的情况,但我无法这样做,因为当我尝试使用沙盒帐户管理订阅时,应用商店希望我关联使用沙盒帐户的付款方式,但根据我的经验,一旦我这样做,沙盒帐户就不再有效.
是否可以测试取消或我只是盲目编码取消?我有搜索的高低,并没有找到任何人能够在沙盒环境中管理订阅.
根据Google Play Developer API的文档,我应该可以批量插入或更新请求.但是,我遇到的问题似乎是文档错误,API坏了,或者我只是遗漏了一些东西.
我正在POST访问URL:https://www.googleapis.com/androidpublisher/v2/applications/inappproducts/batch?access_token=<my token here>&autoConvertMissingPrices=true'
MyContent-Type is set to:application/json
And the body of myPOST`如下:
{
"entrys": [{
"batchId": "<my batch id>",
"methodName": "update",
"inappproductsupdaterequest": {
"inappproduct": {
"packageName": "<my package name>",
"sku": "<my product sku>",
"status": "active",
"purchaseType": "managedUser",
"defaultPrice": {
"priceMicros": "<my price>",
"currency": "USD"
},
"listings": {
"en-US": {
"title": "<my title> ",
"description": "<my description>"
}
},
"defaultLanguage": "en-US"
}
}
}]
}
Run Code Online (Sandbox Code Playgroud)
当我POST这样,我得到以下错误:
{ …Run Code Online (Sandbox Code Playgroud)