Contents

presentOfferCodeRedeemSheet(from:)

Displays a sheet in the view that enables customers to redeem an offer code that you configure in App Store Connect.

Declaration

@MainActor static func presentOfferCodeRedeemSheet(from controller: NSViewController) async throws

Parameters

  • controller:

    An Nsviewcontroller that StoreKit uses to display the offer code redemption sheet.

Mentioned in

Discussion

This method displays a system sheet in the view, where customers can enter and redeem offer codes. Use this method if you generate offer codes in App Store Connect and your app uses AppKit.

For more information on offer codes, see Supporting offer codes in your app.

When customers redeem an offer code, StoreKit emits the resulting transaction in updates. Set up a transaction listener as soon as your app launches to receive new transactions while the app is running.

See Also

Presenting the offer code redemption sheet