Stripe crashing Expo app

  1. SDK Version: 42.
  2. Platforms(Android/iOS/web/all): all

I’m trying to initialize stripe in my app(managed workflow), but as soon as the app is launched in Expo Go in Android simulator it shows the Splash screen and instantly crashes with no errors. On real IOS device there’s no problem.
The only thing that im doing is importing

import { initStripe } from "@stripe/stripe-react-native";

and calling it

  useEffect(() => {
    initStripe({
      publishableKey: stripePublicKey,
    });
  }, []);

I tried with StripeProvider component but its the same thing.

Can you investigate the logs with adb logcat? that will tell you what’s causing the crash

Thanks very much, found the problem - i’ve somehow copied the stripe secret key instead of the public one

1 Like

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.