{"repo":"a-tokyo/react-native-stripe-checkout-webview","free":true,"listed":false,"github":"https://github.com/a-tokyo/react-native-stripe-checkout-webview","clone":"git clone https://github.com/a-tokyo/react-native-stripe-checkout-webview.git","description":"💰 React Native implementation for Stripe.js Checkout.","language":"JavaScript","stars":91,"topics":["stripe","stripe-checkout","payments","online-payments","apple-pay","checkout","react-native","react-native-stripe","flow","typescript"],"license":"MIT","category":"auth-billing-email","readme_excerpt":"React Native Stripe Checkout React Native implementation for Stripe.js Checkout. Description The library allows you to use Stripe.js Checkout with react-native without ejecting. You can use it with both server-side implementations and client-side implementations. Simply ensure you follow the url structure guidelines below. Prequisites - This library relies on React Native Webview. Please follow this guide to install in your project first. Installation - Ensure you've completed the setps in prequisites. - Install package via npm or yarn: npm install --save react-native-stripe-checkout-webview OR yarn add react-native-stripe-checkout-webview - Import in your project Usage Important Notes about URLs - successUrl must have the query string params ?sc checkout=success&sc sid={CHECKOUT SESSION ID} - sc sid is optional - must be the last param - when passed results in sessionId being passed to the onSuccess function - cancelUrl must have the query string params ?sc checkout=cancel - A simple way to do this is using url-join. eg: urlJoin(mySuccessUrl, '?sc checkout=success&sc sid={CHECKOUT SESSION ID}') . Component props - stripePublicKey (String) - Stripe public key of your project. - checkoutSessionInput (Object) - Object to be passed to Stripe's redirectToCheckout function. Docs. - - When using sessionId , only sessionId is forwarded to Stripe's redirectToCheckout . Stripe.js rejects the call if any other field ( successUrl , cancelUrl , locale , ...) is passed alongside sessionId","default_branch":null,"files":null,"tree":[],"storefront":"/r/a-tokyo","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/a-tokyo/react-native-stripe-checkout-webview/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}