question

Garmin Wuerzburg avatar image
Garmin Wuerzburg asked

Testing RVS using sandbox purchase token

Hi all, We are trying to test the RVS using a purchase token generated using SDK Tester. For whatever reason it seems that the SDK Tester generates the same purchase token for any SKU when purchasing in sandbox environment (using json file). When trying to use this purchase token on RVS, the RVS responds with 498 (invalid purchase token). Question : Is it normal for SDK Tester to generate same purchase token for any SKU ? Is there a way to generate a purchase token with a specific SKU that can be validated by the RVS for testing purpose? Note : When we tested with the purchase token available in the "Validate Transactions Outside Your App" example, purchase token was validated by the RVS sandbox.
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.

1 Answer

Dixith@Amazon avatar image
Dixith@Amazon answered
Hi, Thank you for your post. In sandbox environment, SDK tester produces the same purchase token for subsequent purchases of the same consumable item. But the live store will generate a different purchase token for each purchase, even if you purchase the same item. Please find answers to your queries below. 1) Yes, it is normal for SDK Tester to generate the same purchase token for a specific SKU as SKU is a unique identifier for every purchasable item. A specific entitlement and a subscription can only be purchased once. 2) No. Please make sure to use SDK Tester purchase tokens in Test environment and Live purchase Tokens in Live environment. Please ensure to remove special characters like '\n' from the purchase token before using it. Still if you get the same error, please raise a contact-us( https://developer.amazon.com/help/contactus.html) with your purchase token details. Then one of our support engineer will assist you further.
10 |5000

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