question

Chris Bassolino avatar image
Chris Bassolino asked

IAP sdk test returning subscription parent sku instead

I'm creating an html web app for fire tv, and am testing using the SDK tester. When I make a purchase the receipt that is returned from onPurchaseResponse contains the sku of the subscriptionParent instead of the sku that the user has just purchased. Does the live environment on amazon also have this bug/limitation or is this just a bug in the SDK test. I'm using 1.0 of the sdk tester as amazon docs indicate it is the only version that works with html web apps. Thanks.
fire tvsubmission testing distribution
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

WangChao@Amazon avatar image
WangChao@Amazon answered
Hello, A subscription comprises a non-buyable parent SKU representing the product and one or more child SKUs representing the subscription term. This setup prevents users from purchasing multiple subscriptions of the same product. The parent SKU is the SKU returned in the purchase response. The child SKU initiates the purchase. Because subscription terms and charges are handled by Amazon, your app only needs to check whether a subscription is valid. Please check https://developer.amazon.com/public/apis/earn/in-app-purchasing/docs-v2/faq-for-iap-2.0 and https://developer.amazon.com/public/community/post/Tx3LQBBJRUYE58P/-span-class-matches-Implementing-span-the-Amazon-In-App-Purchasing-API-in-your-H for more information. 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.