question

brightman55 avatar image
brightman55 asked

IAP and activity lifecycle & iap developer payload

1. I can easily implement amazon iap by reading sample code, but I wonder if I must register PurchaseObserver in the onStart method. or I can register it in the onCreate method 2. Is there any api to add a developer-customized payload into receipt or we need to implement by our self that we make the receipt part of our message
iap
10 |5000

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

Sujoy@Amazon avatar image
Sujoy@Amazon answered
Hi Brightman55, Thank you for posting. 1. Yes, you can register the observer any where you want. But we recommend to do it in onStart() to get the best performance of IAP client installed in the devices. Please refer this link. https://developer.amazon.com/sdk/in-app-purchasing/documentation/developer-guide.html#IAP%20API 2. No. You can not have any customized payload in the purchase receipt.
10 |5000

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

Amazon Customer avatar image
Amazon Customer answered
Hi Are you planning to add "developer payload" feature to new in-app purchasing api (2.0) ?
10 |5000

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

Sujoy@Amazon avatar image
Sujoy@Amazon answered
We generally do not answer questions about future products or services, which this falls under. However, I'd be happy to forward this feedback/suggestion to the correct team. Could you please provide more information on the "developer payload" feature you are looking for? Thanks.
10 |5000

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

Amazon Customer avatar image
Amazon Customer answered
Developer Payload description copied from Google Play Store billing documentation: "you can include a 'developer payload' string token when sending your purchase request to Google Play. Typically, this is used to pass in a string token that uniquely identifies this purchase request. If you specify a string value, Google Play returns this string along with the purchase response. Subsequently, when you make queries about this purchase, Google Play returns this string together with the purchase details."
10 |5000

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