#sam-reactnative-stripesdk
1 messages · Page 1 of 1 (latest)
Hi 👋
I recommend starting with this basic guide: https://stripe.com/docs/payments/accept-a-payment?platform=react-native
Start with a brand new project and outside of Expo if possible. This will help identify what might be going wrong here.
Hi unfortunately this is a POC as a part of a production repo so I cannot start from scratch and use the latest dependencies. I have followed that guide and also all the steps in https://github.com/stripe/stripe-react-native/tree/master
How are you initializing the StripeProvider?
import { StripeProvider } from '@stripe/stripe-react-native';
import CheckoutPage from './CheckoutPage';
const CheckoutpageContainer = (): JSX.Element => {
return (
<StripeProvider
publishableKey="pk_..."
>
<CheckoutPage />
</StripeProvider>
);
};
export default CheckoutpageContainer;
The error on the android emulator looks like this. Is there something I need to do to get the native code synced up? To be clear the project is not pure react native