A React button component wrapping Afterpay.js to provide a checkout utility.
npm install react-afterpay-checkoutor
yarn add react-afterpay-checkoutimport CheckoutButton from 'react-afterpay-checkout'; const App = () => ( <> <CheckoutButton token="123" countryCode="AU">Shop now with</CheckoutButton> </> );Clone it locally
$ git clone git@github.com:wangdicoder/react-afterpay-checkout.git $ cd react-afterpay-checkout $ npm install $ npm run devMIT