@wapps/react-stripe-checkout

1.0.2 • Public • Published

react-stripe-checkout

Build Status

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/

License

MIT

Dependents (0)

Package Sidebar

Install

npm i @wapps/react-stripe-checkout

Weekly Downloads

1

Version

1.0.2

License

MIT

Unpacked Size

5.66 kB

Total Files

5

Last publish

Collaborators

  • hupe1980