Thank you for your response. From your reply, I understand that you want us to use StoreKit 2 on the iOS side, as only StoreKit 2 returns jwsRepresentation. However, our current situation is that all our iOS code is written in Objective-C and uses StoreKit. The time cost to migrate to StoreKit 2 is quite high. But we would like to migrate our backend API to Apple's new API. So, I would like to ask further: can StoreKit and these new interfaces work together?
Post
Replies
Boosts
Views
Activity
Understood, but this brings us back to the initial issue. I want to distinguish whether the transaction_id is from sandbox data or live data. I reviewed the receipt-data documentation here and found no field related to the environment. As a result, I have no way to differentiate the environment corresponding to the transaction_id. Consequently, I do not know whether to call https://api.storekit.itunes.apple.com/inApps/v1/transactions/{transactionId} or https://api.storekit-sandbox.itunes.apple.com/inApps/v1/transactions/{transactionId} to retrieve the data.