<!--
{
  "availability" : [
    "iOS: 14.0.0 - 18.0.0",
    "iPadOS: 14.0.0 - 18.0.0",
    "macCatalyst: 14.0.0 - 18.0.0",
    "visionOS: 1.0.0 - 2.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "StoreKit",
  "identifier" : "/documentation/StoreKit/SKPaymentQueue/presentCodeRedemptionSheet()",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "StoreKit"
    ],
    "preciseIdentifier" : "c:objc(cs)SKPaymentQueue(im)presentCodeRedemptionSheet"
  },
  "title" : "presentCodeRedemptionSheet()"
}
-->

# presentCodeRedemptionSheet()

Displays a sheet that enables customers to redeem offer codes that you configure in App Store Connect.

```
func presentCodeRedemptionSheet()
```

## Discussion

The [`presentCodeRedemptionSheet()`](/documentation/StoreKit/SKPaymentQueue/presentCodeRedemptionSheet()) function displays a system sheet where customers can enter and redeem offer codes. If you generate offer codes in App Store Connect, call this function to enable customers to redeem the offer. For information on implementing offer codes, see [Implementing offer codes in your app](/documentation/StoreKit/implementing-offer-codes-in-your-app).

> Note:
> For apps with more than one scene, and on iOS 16 or later and iPadOS 16 or later, use <doc://com.apple.documentation/documentation/SwiftUI/View/offerCodeRedemption(isPresented:onCompletion:)> or ``doc://com.apple.storekit/documentation/StoreKit/AppStore/presentOfferCodeRedeemSheet(in:)`` instead.

When your app calls [`presentCodeRedemptionSheet()`](/documentation/StoreKit/SKPaymentQueue/presentCodeRedemptionSheet()), the system determines where to display the screen. Use [`presentCodeRedemptionSheet()`](/documentation/StoreKit/SKPaymentQueue/presentCodeRedemptionSheet()) to support devices running iOS 14 through iOS 15, and iPadOS 14 through iPadOS 15.

> Important:
> Set up offer codes in App Store Connect before calling this API. Customers can only redeem these offers in your app through the redemption sheet; don’t use a custom UI.

For information on configuring and generating offer codes, see [Set up offer codes](https://help.apple.com/app-store-connect/#/dev6a098e4b1).

This method applies to offer codes only; it doesn’t apply to promo codes for apps or in-app purchases. For more information on promo codes, see [Request and manage promo codes](https://help.apple.com/app-store-connect/#/dev50869de4a).

This function doesn’t affect Mac apps built with Mac Catalyst.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)