Hello, I’ve managed to invoke presentCodeRedemptionSheet() inside the react native app, and did successfully setup the subscription offer codes in the app store. However when we try to redeem the code, native modal says that the offer has already expired even though expiration date is in the future. Is it possible to test the subscription offer codes in the sandbox? thanks
Test redeem offer codes in sandbox environment
Hey There!
Since launch, Apple's in-app Offer Code redemption sheet has proven to be unstable. For example, the sheet may not connect, may not dismiss after a successful redemption, and may not accept valid codes. Additionally, sandbox and TestFlight behavior has been seen to be inconsistent.
A workaround may be to instead redirect customers to the App Store app to redeem codes.
With that being said, testing is possible but just can be hit or miss and it seems like the issue you are having here is with Apple reporting that code as expired for some reason, not necessarily that the code is broken or anything.
The reason behind this is that Apple promo codes are only available to be tested in production. More on link below
![Shipped It Badge](https://uploads-us-west-2.insided.com/revenuecat-en/attachment/00177be5-17f2-4400-bea7-87c75adea50f_thumb.png)
The reason behind this is that Apple promo codes are only available to be tested in production. More on link below
Very nice. I’m struggling with this promo codes for a while… It would be nice to add this important note to the RevenueCat documentation on that issue… Thanks, you saved me another couple of days ))))
Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.