我有一个 react native 应用程序,并使用 react-native-iap 库与 Apple/Google 服务器通信以购买订阅。订阅成功并返回一个交易,但是当我尝试使用该收据来验证订阅是否在到期时间(下一个计费时间)使用谷歌播放 API 后自动续订时,它返回 autoRenewing 标志为 false 并带有 cancelReason: 1. 我不知道发生了什么,但根据 Google Play cancelReason:1 的意思是,“订阅被系统取消,例如因为计费问题”
这是我从谷歌得到的回复:
{
"acknowledgementState": 1,
"autoRenewing": false,
"autoResumeTimeMillis": null,
"cancelReason": 1,
"countryCode": "IN",
"developerPayload": "",
"emailAddress": null,
"expiryTimeMillis": "1627031557423",
"externalAccountId": null,
"familyName": null,
"givenName": null,
"kind": "androidpublisher#subscriptionPurchase",
"linkedPurchaseToken": null,
"obfuscatedExternalAccountId": null,
"obfuscatedExternalProfileId": null,
"orderId": "GPA.3395-1240-4774-78426",
"paymentState": null,
"priceAmountMicros": "7387010235",
"priceCurrencyCode": "INR",
"profileId": null,
"profileName": null,
"promotionCode": null,
"promotionType": null,
"purchaseType": 0,
"startTimeMillis": "1627031259058",
"userCancellationTimeMillis": null
}
答案 0 :(得分:0)
许可测试员帐户必须是印度以外的国家/地区。在印度,由于 RBI 指南的最新变化,谷歌已暂停应用更新一段时间。