react-afterpay-checkout
v0.7.0
Published
A React button component wrapping Afterpay.js to provide a checkout utility.
Downloads
11
Maintainers
Readme
React Afterpay Checkout
A React button component wrapping Afterpay.js to provide a checkout utility.
📦 Install
npm install react-afterpay-checkout
or
yarn add react-afterpay-checkout
🔨 Usage
import CheckoutButton from 'react-afterpay-checkout';
const App = () => (
<>
<CheckoutButton token="123" countryCode="AU">Shop now with</CheckoutButton>
</>
);
⌨️ Development
Clone it locally
$ git clone [email protected]:wangdicoder/react-afterpay-checkout.git
$ cd react-afterpay-checkout
$ npm install
$ npm run dev
📄 License
MIT