question

vickyu avatar image
vickyu asked

Expiration Date for Subscription that is Cross-Platform (Website, TV Apps)?

Dear Amazon, We have read the documentations, and numerous customer questions regarding how to determine the expiration date of a subscription. The Amazon Receipt Validation Server returns null if the subscription is active. However, for a subscription that can be utilized cross-platform (Website, TV Apps, Android Apps, etc.) and beyond the Amazon App, it is necessary and efficient to know and record the actual subscription expiration date. Below are my questions: 1) If the user logs into our website or one of our TV App to utilize their subscription, should our website or TV app immediately communicate back to our Server to query the Amazon Receipt Validation Server in other to determine if the user's subscription was still active each, and every time the user logs into our website or our one of our TV Apps? 2) Is there a more efficient way to determine an expiration date of a subscription without having our server query the Amazon Receipt Validation Server for each outlet (Website, TV Apps, Android Apps, various smartphones, various tablets) from which our subscription can be utilized? 3) Our centralized platform already has a database field for a subscription "expiration_date" that is populated regardless of the subscription payment provider. What do we store in the "expiration_date" field for subscriptions that were purchased via Amazon In-App Payment without writing specialized code that will affect all our outlets, and query the Amazon Receipt Validation Server each and every time a person logs in? We will greatly appreciate answers that will help us simplify the integration of Amazon In-App Payment subscription. Thank you.
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

DougM@Amazon avatar image
DougM@Amazon answered
Hello vickyu, Unfortunately our subscriptions that are built into the In-App Purchasing SDK would not have an expiration date behavior that would meet the use case that you are describing. As our subscriptions won't actually deterministically know whether or not a subscription expires until the subscription has already lapsed. So any validation for the subscription would require a call to our In-App Purchasing SDK and/or our Receipt Validation Server prior to entitling new content based on a subscription.Please refer to our subscriptions-related questions in our In-App Purchasing FAQ at: https://developer.amazon.com/public/apis/earn/in-app-purchasing/docs-v2/faq-for-iap-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.