This repository features a React example that uses Bigcommerce's Checkout JS SDK to illustrate how to build custom checkout solution for a BigCommerce store.
Please note that this checkout is a good starting and reference point, but is not production ready. You should not use this custom checkout in production as it stands.
To pull in this example checkout for quick demos, grab the latest build via the CDN:
<script src="https://cdn8.bigcommerce.com/s-65xv2m9zph/content/20180927.js"></script>
Add a <div>
element above the <script>
tag with the id of checkout-app
in the page where you want the checkout to be render:
<div id="checkout-app"></div>
To run this example locally, simply run the following:
npm install && npm run dev
To build:
npm run build
- Integrating Checkout JS SDK Example into Cornerstone
- Integrating Checkout JS SDK Example into Cornerstone CDN Example
- Checkout JS SDK
- Storefront APIs
- React
This repository is MIT Licensed.