I am trying to grant an entitlement - by testing in dev from my server, expecting the Sandbox to be granted the entitlement. However, nothing seems to achieve this:
- communicate with customer records & items via Secret API keys - starts with
sk_*** - use the Sandbox API key to make the purchase - starts with
rcb_sb_*** - if I use the Sandbox key as Bearer for REST api, like customer look ups it fails. OK, use the Secret key for everything except purchase. But then using the Sandbox key to purchase it fails.
- RevenueCat webhook received:
{
eventId: '***-***',
eventType: 'NON_RENEWING_PURCHASE',
appUserId: '***-***',
environment: 'PRODUCTION',
productId: 'rc_promo_entitlement_custom'
}
What do I need to do to grant an entitlement in a sandbox?
