Testing in Sandbox we’ve encountered the following issue:
Upon making a purchase on Android we see the following behavior:
- Play Store (on device) - Gets success confirmation
- PlayStore console order manager shows the order Purchase shows up on PlaySore order manager
- RevenueCat Dashboard has a record of that exact purchase (matching transaction_id)
- However there’s no record of webhook that’s being triggered for INITIAL_PURCHASE (see image above)
Is this an issue with RevenueCat SDK or the RevenueCat service?
Best answer by ryanView original
I was able to take a look at that event ID in our system and confirm that was a backfilled event, which means it was actually created in RevenueCat at the same time as a future transaction, and only the latest transaction would dispatch a webhook or integration event.
The most common case for backfilled events are customers that had a subscription previously then migrated to RevenueCat. RevenueCat will start seeing renewals, and try to backfill any historical renewals back to the initial purchase - but only the latest transaction dispatches events to integrations / webhooks.
In this case, it looks like this is a SANDBOX transaction so it’s possible to see a backfilled event even if the purchase was initiated through RevenueCat if there was some failure on the initial purchase. An example of how this could occur would be:
Due to the 5min renewal cycles and the less reliable nature of sandbox environments, I would still expect this to be rare but wayyyy more common in sandbox than production.
Hope this helps!