An importable boilerplate Occasion checkout experience using React, the Occasion SDK, and Mitragyna
$ yarn
First, modify index.html
with your merchant API login and product ID:
<script>
window.OCCSN = {
api_key: 'YOUR_API_LOGIN',
host_url: 'https://occ.sn',
product_id: 'YOUR_PRODUCT_ID'
};
</script>
Then, run poi to start a local webpack hot-reloading build:
$ yarn poi
To build changes to be merged into the production experience, run:
$ yarn build