In-App Purchases in React Native 2026: RevenueCat, StoreKit 2, and the Refund Webhook We Missed
A field-tested breakdown of shipping subscriptions in React Native with RevenueCat, StoreKit 2, and Google Play Billing 7 — including the refund webhook that quietly cost us a month of revenue.
Subscriptions look simple on the pitch deck and brutal in production. We shipped a React Native app with RevenueCat on top of StoreKit 2 and Google Play Billing 7, thought we were done, then spent a weekend figuring out why our MRR dashboard disagreed with Apple's by about 11%. This is the honest version of what we learned.
Why we stopped rolling our own IAP
For years, we told clients that react-native-iap plus a thin backend receipt validator was enough. In 2026, that advice is harder to defend. Apple's StoreKit 2 moved to JWS-signed transactions and server-to-server notifications v2. Google rotated to Play Billing Library 7 with mandatory server-side acknowledgement windows. Both platforms now expect you to hold a verified source of truth outside the device.
You can still build all that yourself. We've done it. But the maintenance cost — webhook schema changes, grace periods, billing retries, family sharing, promotional offers, Google's new subscription groups — is no longer a reasonable line item for most product teams. Managed services like RevenueCat, Adapty, and Qonversion exist because every mobile team hit the same wall.
We default to RevenueCat now, mostly because its React Native SDK is first-class and its webhook surface is predictable. This article uses it as the reference, but the StoreKit 2 and Play Billing 7 concepts apply regardless of which provider you choose.
What RevenueCat actually does for you
- Validates StoreKit 2 JWS transactions and Play Billing purchase tokens on their servers
- Normalises
Entitlementacross platforms so your app checks one boolean - Handles acknowledgement, renewal tracking, grace periods, and billing retries
- Emits webhooks for
INITIAL_PURCHASE,RENEWAL,CANCELLATION,EXPIRATION,BILLING_ISSUE,PRODUCT_CHANGE, and the one we missed —CANCELLATIONwith reasonCUSTOMER_SUPPORT(refunds).
What it does not do: decide your pricing, handle your tax/compliance outside the stores, or save you from a bad paywall.
Wiring it up in a React Native + Expo app
As of Expo SDK 52+, the RevenueCat SDK ships as a config plugin, so you don't need to eject. The dev client build is required — Expo Go won't talk to StoreKit.
npx expo install react-native-purchases
npx expo prebuild
eas build --profile development --platform ios
Configure the plugin in app.config.ts:
export default {
plugins: [
[
'react-native-purchases',
{ storekitVersion: '2' }
]
]
};
Then initialise once at app start, before any paywall mounts:
import Purchases, { LOG_LEVEL } from 'react-native-purchases';
export async function initBilling(appUserId: string) {
if (__DEV__) Purchases.setLogLevel(LOG_LEVEL.DEBUG);
await Purchases.configure({
apiKey: Platform.select({
ios: process.env.EXPO_PUBLIC_RC_IOS!,
android: process.env.EXPO_PUBLIC_RC_ANDROID!,
})!,
appUserID: appUserId,
});
}
A few things we've learned the hard way here:
- Always pass your own
appUserID. Letting RevenueCat generate an anonymous ID is fine until a user reinstalls or switches devices. Tie it to your auth system from day one. - Don't call
configuretwice. It silently works but produces duplicated delegate callbacks on iOS. Guard it. - Enable StoreKit 2 explicitly. The SDK still defaults to StoreKit 1 on older configurations in our experience. StoreKit 2 gives you JWS verification and better refund signals.
Rendering offerings without hardcoding product IDs
One of the quiet wins of using a service layer is that your product catalogue lives outside your binary. We fetch offerings and let the dashboard drive pricing experiments.
const offerings = await Purchases.getOfferings();
const current = offerings.current;
if (!current) return <PaywallFallback />;
return (
<Paywall
packages={current.availablePackages}
onPurchase={async (pkg) => {
try {
const { customerInfo } = await Purchases.purchasePackage(pkg);
if (customerInfo.entitlements.active['pro']) {
router.replace('/welcome-pro');
}
} catch (e: any) {
if (!e.userCancelled) reportError(e);
}
}}
/>
);
That userCancelled check matters. On iOS, hitting the system cancel button throws. If you report it to Sentry you'll drown in noise.
The refund webhook we missed
Here's the war story. We launched a consumer app with a $9.99/month subscription. Three weeks in, our internal dashboard showed ~2,400 active subscribers. Apple's App Store Connect showed ~2,140. Google was off by a smaller margin.
The culprit was refunds. When a user requests a refund through Apple Support — not a cancellation, an actual refund — StoreKit 2 fires a REFUND transaction and Apple's server-to-server v2 notification sends REFUND with subtype: null. RevenueCat translates that into a CANCELLATION webhook with cancel_reason: CUSTOMER_SUPPORT.
Our webhook handler was only revoking entitlements on EXPIRATION and on CANCELLATION where cancel_reason was UNSUBSCRIBE. Refunds fell through the switch statement and sat there as "cancelled but still active until period end" — except the user had their money back and had been using the app for free.
The fix was a one-line case, but the lesson was bigger: treat the webhook as the source of truth, and handle every cancel reason explicitly.
switch (event.type) {
case 'INITIAL_PURCHASE':
case 'RENEWAL':
case 'PRODUCT_CHANGE':
await grantEntitlement(event.app_user_id, event.entitlement_ids);
break;
case 'CANCELLATION':
if (event.cancel_reason === 'CUSTOMER_SUPPORT' ||
event.cancel_reason === 'DEVELOPER_INITIATED') {
await revokeEntitlement(event.app_user_id, event.entitlement_ids);
}
// UNSUBSCRIBE: let it expire naturally
break;
case 'EXPIRATION':
case 'BILLING_ISSUE':
await revokeEntitlement(event.app_user_id, event.entitlement_ids);
break;
default:
logger.warn('Unhandled RC event', { type: event.type });
}
That default: logger.warn is the part that would have caught us. Add it to every third-party webhook you write.
Verify the webhook signature
RevenueCat signs webhooks with an Authorization header you set in the dashboard. Rotate it, store it in your secrets manager, and reject anything that doesn't match. We've seen teams leave this open and get hit with fake renewal events during penetration testing.
App Review pitfalls specific to IAP
Subscriptions remain one of the most common rejection categories. In 2026 the patterns we see flagged:
- Missing restore button. Apple still requires a visible "Restore Purchases" action on any paywall. Call
Purchases.restorePurchases()and show a result toast. Hiding it in settings isn't enough if the paywall is modal. - Price not shown in local currency on the paywall itself. Pull it from the
StoreProduct.priceString— do not hardcode$9.99. - Terms and privacy links that open in-app web views without a close button. Reviewers click everything.
- Free trial language. Apple wants "3 days free, then $9.99/month" exactly in that order, with the recurring price visible before the CTA.
- Android: using a custom paywall for a product that's also available on the web at a lower price. Google's new external offers programme has specific disclosure requirements. If you're not using it, keep prices at parity.
If you want a deeper walk-through of review traps beyond billing, our team wrote one up over on the 72Technologies blog.
When we'd still go native
RevenueCat plus React Native covers 90% of subscription apps we build. We reach for native Swift or Kotlin billing code in a few specific cases:
- Family Sharing with complex entitlement splits on iOS, where StoreKit 2's native APIs give you cleaner access to
Transaction.currentEntitlementsasync sequences. - Google Play's new multi-line subscriptions with base plans and offers, where the raw Billing Library 7 flow is sometimes ahead of the cross-platform wrappers.
- Apps that already have a native host (brownfield integrations) where routing purchases through the existing native billing module avoids two sources of truth.
For greenfield React Native apps with standard monthly/annual tiers, the managed route wins on time-to-ship and on sleep quality.
Where we'd start
If you're building this next week: wire RevenueCat with StoreKit 2 enabled, pass your own appUserID, and build the webhook handler before the paywall. Put a default case in the switch that pages you. Test with Apple's sandbox refund tool and Google's license testing accounts — not just happy-path purchases. Then go look at your paywall copy once more, because the review team will.
The infrastructure is the boring part. Getting it boring is the whole job.
Want a team like ours?
72Technologies builds production software for the kind of teams who actually read this blog.
Start a projectKeep reading
EAS Update in 2026: Shipping OTA Fixes Without Breaking the App Store Rules
A field guide to running OTA updates with Expo EAS Update in 2026 — channels, rollouts, runtime version pinning, and the Apple guideline that quietly kills careless teams.
New Architecture in React Native 2026: Shipping Fabric and TurboModules Without Regret
A field report on migrating a production React Native app to Fabric and TurboModules in 2026 — what breaks, what doesn't, and the native module work you can't avoid.
Biometric Auth in React Native 2026: Face ID, Keystore, and the Silent Logout Bug
Face ID and fingerprint login look simple until a user updates their OS and gets silently logged out. Here's how we wire biometric auth in React Native without torching trust.
