Question

Test redeem offer codes in sandbox environment

  • 27 December 2022
  • 3 replies
  • 1164 views

Userlevel 1
Badge +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


3 replies

Userlevel 3
Badge +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.

 

Userlevel 1
Badge +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

Badge +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

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