React/React Native Stripe Client
React/React Native Stripe wrapper for using Stripe in Web/iOS/Android.
Installation
npm install react-native-stripe-client --save
Usage
import stripe from 'react-native-stripe-client'
const stripeClient = stripe("YOUR_PUBLISHABLE_STRIPE_API_KEY");
🔗
Creating a tokenconst response = await stripeClient;
🔗
Creating a bank account tokenconst information = bank_account: country: "US" currency: "usd" account_holder_name: "saroj s" account_holder_type: "individual" routing_number: "110000000" account_number: "000123456789" ;const bank = await stripeClient;
🔗
Creating a PII tokenvar information = pii: personal_id_number: "000000000" ;const pii = await stripeClient;
🔗
Create a PaymentMethodconst response = await stripeClient;
🔗
Create a SetupIntentconst intentResponse = await stripe;