How to add Stripe Payment in react native app
Hi folks, today I want to share the procedure of payment integration in react native app through Stripe
- Registration
- Installation
- Configuration
- Card Component
- Create a Payment Indent
- Submit the Payment
- Test Cards
Registration
First, you have to create your account on the Stripe dashboard.
Stripe dashboard in test mode will look like this.
Installation
For server-side installation, you can refer to this link
For the react-native side, run this command in terminal
yarn add @stripe/stripe-react-native
And to install the required native dependencies, run this command in the ios
folder. Android doesn’t require any additional steps.
pod install
Configuration
Now wrap your <App/>
in <StripeProvider>
tag and pass your account publishable key to it. You…