@wapps/react-stripe-checkout
v1.0.2
Published
React stripe checkout component
Downloads
9
Readme
react-stripe-checkout
React stripe checkout compoment
Installation
npm install @wapps/react-stripe-checkout
How to use
import React from 'react';
import StripeCheckout from '@wapps/react-stripe-checkout';
const App = () => (
<StripeCheckout apiKey={YOUR_STRIPE_KEY} token={token => console.log(token)}>
<button>Purchase</button>
</StripeCheckout>
);
export default App;
Live Demo
For a demo, check out https://hupe1980.github.io/wapps-components/