Skip to main content
Question

Test redeem offer codes in sandbox environment

  • December 27, 2022
  • 3 replies
  • 2076 views

Forum|alt.badge.img+2

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

This post has been closed for comments

Michael Fogel
Forum|alt.badge.img+6

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.

 


Forum|alt.badge.img+2

The reason behind this is that Apple promo codes are only available to be tested in production. More on link below

https://developer.apple.com/forums/thread/70426


Forum|alt.badge.img+3
Bogdastotel wrote:

The reason behind this is that Apple promo codes are only available to be tested in production. More on link below

https://developer.apple.com/forums/thread/70426

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 ))))


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings