I want to grant premium access to some users with offer codes and present Redeem page with this method:
It works fine ,but:
After redemption how can I verify the results(e.g entitlement ,days remaining ,etc )
and how can I test it with in sandbox environment ,is it possible?
I have my appstore connect side configured but I need some recommendation on revenue cat please.
Best answer by tinaView original
I don’t believe Offer Codes seem to work in sandbox :/ In the past when we attempted testing, Offer Codes always appeared as “expired” in sandbox. We recently added an
offer_codefield to webhooks (documentation still being worked on) that you can utilize to confirm entitlement, expiration date, etc.
Does that mean that there is a Webhook trigger for every offer code redemption from RevenueCat? What would be the event type in that case.? Where can I find more details about the event details.?
offer_codefield will be present for most webhook events.
INITIAL_PURCHASEWe have an example JSON you can reference here: https://docs.revenuecat.com/docs/webhooks#events-format
The webhook documentation has been shipped, you can see more information about the
offer_codein this table: https://docs.revenuecat.com/docs/webhooks#subscription-lifecycle-events-fields