question

newuser-3c4c58a0-ac90-4343-adf4-3144526b8363 avatar image

JSON response structure from Amazon in-app purchasing

May someone post here or give link, where I can find json response structure from amazon in-app, which contains userId field.

Thanks in advance!

iapamazon appstorepurchasing
10 |5000

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

1 Answer

Levon@Amazon avatar image
Levon@Amazon answered

Hi there,

Thanks for posting! Normally, when you call getUserData(), and process the callback in onUserDataResponse(UserDataResponse userDataResponse), you can get the UserId of the currently logged on user. See: https://developer.amazon.com/public/apis/earn/in-app-purchasing/docs-v2/implementing-iap#purchasinglistener

If you are implementing it in a web app, please see the following documentation:

Implementing IAP with the IAP Plugin for Cordova

IAP Plugin Methods and Events for Cordova

Using the IAP Plugin for Cordova

10 |5000

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