ios in-app subscriptions - when does original_transaction_id change?

[亡魂溺海] 提交于 2019-12-03 10:49:52

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.

  • User start subscription, stop auto-renew and expire, then start subscription again.
  • User start subscription and cancel it, but start again.
  • User start subscription and upgrade or downgrade to subscription in same group.

But this is not a guaranteed result, so you would better prepare in case original_transaction_id changes.

Original_transaction_id is (All receipts in a chain of renewals for an auto-renewable subscription have the same value for this field.)

Expires_date is (The expiration date for the subscription, expressed as the number of milliseconds since January 1, 1970, 00:00:00 GMT.)

Reference: https://developer.apple.com/library/ios/releasenotes/General/ValidateAppStoreReceipt/Chapters/ReceiptFields.html#//apple_ref/doc/uid/TP40010573-CH106-SW12

Why do you want to test it in real scenario when you may test in it simulated environment as per apple's guidelines at https://developer.apple.com/library/ios/documentation/LanguagesUtilities/Conceptual/iTunesConnectInAppPurchase_Guide/Chapters/TestingInAppPurchases.html ?

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!