Search code examples
iosswiftin-app-purchaseswift5in-app-subscription

presentCodeRedemptionSheet not showing Redeem offer button


I create offer codes on my iTunes account in my monthly subscription. I am using presentCodeRedemptionSheet StoreKit API to enter redeem code within the app using this code

 let paymentQueue = SKPaymentQueue.default()
    if #available(iOS 14.0, *) {
        paymentQueue.presentCodeRedemptionSheet()
    }

The above code presenting me this UI

enter image description here

after entering the code this UI not showing me redeem offer button.

enter image description here

I am stuck here please help me :) .


Solution

  • On the keyboard tap Return button on the bottom-right corner, not the Done button on the top-right.