winBackOffer(_:)
Sets a win-back offer to apply to the purchase.
Declaration
static func winBackOffer(_ offer: Product.SubscriptionOffer) -> Product.PurchaseOptionParameters
- offer:
The Subscriptionoffer instance that represents the win-back offer to apply to the purchase.
Discussion
To test win-back offers in Xcode, set up the offers in your StoreKit configuration file. For more information, see Setting up StoreKit Testing in Xcode.