In Apple's documentation the transactionDate
is:
The date the transaction was added to the App Store’s payment queue. (read-only)
I just want to clarify what the transactionDate will be in the following case:
Thanks!
- purchased something at time T1 (transactionDate is T1?)
Yes. transactionDate is T1. Following apple's documentation:
transactionDate : The date the transaction was added to the App Store’s payment queue.
- restored purchase at time T2 (transactionDate is T2 or T1?)
Doesn't matter. If transactionState
is set to SKPaymentTransactionStateRestored
, you should read originalTransaction
. Following apple's documentation:
originalTransaction : The contents of this property are undefined except when transactionState is set to SKPaymentTransactionStateRestored. When a transaction is restored, the current transaction holds a new transaction identifier, receipt, and so on. Your application will read this property to retrieve the restored transaction.
- originalTransaction of restored transaction, is its transactionDate T1 or T2?
T1.
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