question

liortal53 avatar image
liortal53 asked

App tester purchase response doesn't contain user id and marketplace

We are trying to implement IAP v2 for our game (using the Unity SDK). We started by working with the App tester, but it doesn't seem to return the 'user id' or 'marketplace' fields in the purchase response.

We specifically need to user id to verify the purchase (required by Amazon).

Here's an example of a response we're getting:

{"requestId":"bcb343fe-ff90-4cab-8692-48ec62ec60f3","amazonUserData":{"userId":"","marketplace":""},"purchaseReceipt":{"receiptId":"q1YqVrJSSs7P1cvNz89LTC7JLEvVS87VS87PzCvWK1bSUUoByhuaWJpZGhmZW5qampkDxUqBYjnGHj7mEQUFrr4ZRf7uLnmlRZa6pTllhfm5RcHpZoWV_i7euYkZ5mY5XqG2QC0lSlYGtQA","cancelDate":0,"purchaseDate":1496922795000,"sku":"com.moonactive.cm.coins.s","productType":"CONSUMABLE"},"status":"SUCCESSFUL"}

What's wrong? according to the docs, this information should be returned in the purchase response.

iapsdkpurchasingunity
1 comment
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Hi liortal53,

Are you correctly using the GetUserData method?

0 Likes 0 ·

0 Answers