When there is an auto-renewing subscription, consider the following model situation:
Does the AppStore return (on receipt verification) a new original_transaction_id
for the new purchase? Or rephrased, can original_transaction_id
be used for grouping receipts to determine intervals when user had active subscription?
Because in sandbox, when there is a simulated situation like this, it returns always original_transaction_id
from the FIRST purchase of given subscription, regardless if there were some intervals where user had not active subscription. When there was multiple purchases of subscription with intervals between, when it was expired, Sandbox receipt verification returns original_purchase_date
of first purchase, and expires_date
of last purchase.
My problem is, to test it in live enviroment, I would have to wait more than a month to let subscriptions expire to test the exact behaviour.
They automatically renew at the end of their duration until the user chooses to cancel. Subscriptions are available on iOS, iPadOS, macOS, watchOS, and tvOS.
A unique identifier for a transaction such as a purchase, restore, or renewal.
I have maintained an production app with subscription for several years.
As far as I see, original_transaction_id
does not change in that case you mentioned.
Moreover, original_transaction_id
belongs to subscription group, not each product_id.
So it remains same in below cases.
But this is not a guaranteed result, so you would better prepare in case original_transaction_id changes.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With