问题
Im testing Android In app purchase subscription with one of my accounts with TEST License access (I'm aware Test access won't support Subscriptions).
Noticed that there is no orderId
in purchase response JSON but payment goes through(no charges though since there's a trail for 7 days on this subscription). response json looks like:
"packageName": "com.xxx.xxxx",
"productId": "yyyyyyyyyy_sdsda",
"purchaseTime": 1426055867418,
"purchaseState": 0,
"purchaseToken": "xxxxxxxxxxxx",
"autoRenewing": true
No 'ORDERID' is found. Tried switching to another Wallet account but no luck. Any clue??
回答1:
I've tried to reach Google support on this issue and it looks like they've added support for TEST access to subscriptions as well. i.e No order ID will be assigned for TEST accounts. Here's the response in their words:
The team said that is working as expected as our payments system (Wallet) will not actually process anything so an order ID will never be assigned. I know it's not ideal for test purposes but that's currently how it works.
Posting it here hoping it would help others to understand these changes.
来源:https://stackoverflow.com/questions/28981224/issue-with-android-iap-no-orderid-in-purchase-object