1

Keys

Dashboard → Developers → API Keys
# .env.local
EXPO_PUBLIC_STRIPE_PUBLISHABLE_KEY=pk_test_...

# supabase/functions/.env
STRIPE_SECRET_KEY=sk_test_...
2

Webhooks (Supabase Edge)

Create endpoint in Stripe: https://your-project.supabase.co/functions/v1/stripe-webhookEvents:
  • payment_intent.succeeded
  • customer.subscription.created/updated/deleted
# supabase/functions/.env
STRIPE_WEBHOOKS_SECRET=whsec_...
3

Apple Merchant ID (iOS)

  1. Apple Developer → Identifiers → Merchant IDs → merchant.com.your.app
  2. Add Stripe plugin to app config, then rebuild native code:
{
  "expo": {
    "plugins": [["@stripe/stripe-react-native", {"merchantIdentifier": "merchant.com.your.app", "publishableKey": "pk_test_..."}]]
  }
}
npx expo prebuild --clean
After any plugin change, prebuild is required.