iOS Offer Code

  • 4 June 2024
  • 1 reply


How does RevenueCat identify the transaction associated with a particular user when the user makes a purchase using an offer code through an external link that directs them to the App Store, instead of using the presentCodeRedemptionSheet method?

This post has been closed for comments

1 reply

Userlevel 4
Badge +6

Hey @jegoapp 


When users click your link within your app to redeem the offer code, it will take them outside of the app to complete the purchase. Once this is done, it is important to call syncPurchases when the user returns back to your app to retrieve their purchase. This may be done by recording when the user leaves the app due to the link, and calling syncPurchases when the user returns to the app. If not, the user may need to trigger a restore within your app when they come back for us to see that the purchase was made and with an offer code. 


The restore functionality allows us to re-sync the purchase from the store account after it was made and see the offer attached to it.


Let me know if that helps!