presentOfferCodeRedeemSheet(from:options:)
Presents a sheet that enables users to redeem subscription offer codes that you configure in App Store Connect.
Declaration
@MainActor static func presentOfferCodeRedeemSheet(from window: NSWindow, options: Set<RedeemOption> = []) async throws -> VerificationResult<Transaction>Parameters
- window:
The
NSWindowthat StoreKit uses to display the offer code redemption sheet. - options:
A set of Redeemoption values to configure the offer code redemption.
Return Value
A VerificationResult containing the Transaction that the redemption produces.