So the 12.2 discounts have a well documented call flow.
1. You have to determine if a given SKProduct.discounts offer applies (via your server)
2. If so you pull pricing information off of the discount to display to the user (among other UI changes you may make)
3. If the user proceeds with the purchase you have to sign the offer from your server.
4. Then you create a SKPaymentDiscount with the relevant nonce, key, signature, etc
5. Assign the SKPaymentDiscount to your SKPayment.paymentDiscount field and also set the SKPayment.applicationUsername
6. Add that payment to the SKPaymentQueue
What I'm not as clear with is the older 11.2 introductoryPrice call flow. From what I understand it looks like
1. If there is an introductoryPrice Look up if the user is eligible for an introductory price (must have had no prior intro purchases)
2. If the user is eligible pull the pricing information off of the SKProductDiscount to display to the user (among any other UI changes)
3. Then, and this is where I get lost, how do you configure the SKPayment to include the introductoryPrice if it's included or not include it if its not appropriate?
SKPayment.paymentDiscount was added in 12.2 so it does not appear to apply.
What am I missing. Once you determine if the introductoryPrice applies to this user there's got to be a way to signal that to SKPaymentQueue.
Thanks.