Hi,
We are currently experiencing a bug where customers are unable to proceed after completing a purchase. The RevenueCat webhook is being triggered, and the payment is successfully processed, but nothing happens on the frontend. It seems that the event is not firing as expected, which is causing significant issues for our users.
Here is our implementation:
<RevenueCatUI.Paywall
onPurchaseCompleted={({ storeTransaction }) => {
try {
track('free_trial_premium_button', { partnerGroup });
AppEventsLogger.logEvent(AppEventsLogger.AppEvents.Subscribe, {
[AppEventsLogger.AppEventParams.Description]:
'Purchase completed',
[AppEventsLogger.AppEventParams.Currency]: 'EUR',
[AppEventsLogger.AppEventParams.ContentID]:
storeTransaction.productIdentifier,
[AppEventsLogger.AppEventParams.NumItems]: '1',
});
router.replace(finalLoading);
} catch (e) {
console.error({ onPurchaseCompletedError: e });
Sentry.captureException(e);
}
}}
onPurchaseError={(error) => {
console.error({ onPurchaseError: error });
Sentry.captureException(error);
}}
onRestoreCompleted={async ({ customerInfo }) => {
if (
typeof customerInfo.entitlements.active['CENSORED'] !==
'undefined'
) {
router.replace(finalLoading);
}
}}
/>Versions:
"expo": "~52.0.42"
"react-native": "0.76.7"
"react-native-purchases": "^9.2.0"
"react-native-purchases-ui": "^9.2.0"
