Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Issue with Android IAP, no OrderID in Purchase Object

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 orderIdin 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??

like image 863
CodeFury Avatar asked Mar 11 '15 07:03

CodeFury


People also ask

What is purchase token?

A successful purchase also generates a purchase token, which is a unique identifier that represents the user and the product ID for the in-app product they purchased.


1 Answers

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.

like image 131
CodeFury Avatar answered Sep 22 '22 10:09

CodeFury