Hi, I was wondering could we tell the difference if a user is redeemed among Subscription Offer Codes and the others two types of Offers (Introductory Offers, Promotional Offers) when receiving shouldAddStorePayment callback?
I didn't see there is a SKProductDiscount.Type for it. https://developer.apple.com/documentation/storekit/skproductdiscount/type
When a user redeem offer code by typing manually in AppStore App or via
itms-apps://buy.itunes.apple.com/WebObjects/MZFinance.woa/wa/freeProductCodeWizard?code=YOUR_CODE URL
, I think we could expect that there should be a paymentQueue(_:shouldAddStorePayment:for:) to inform SKPaymentTransactionObserver about the event according to the document.
https://developer.apple.com/documentation/storekit/skpaymenttransactionobserver/2877502-paymentqueue
If your app is not yet installed when the user starts the in-app purchase in the App Store, the user gets a notification when the app installation is complete. This method is called when the user taps the notification. Otherwise, if the user opens the app manually, this method is called only if the app is opened soon after the purchase was started.