Package Exports
- chargebee-js
- chargebee-js/dist/cjs/index.js
- chargebee-js/dist/es/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (chargebee-js) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
ChargebeeJS Browser SDK
chargebee-js is npm package to include Chargebee's browser script, instead of adding it as script tag in HTML pages for JS frameworks.
Installation
You can install the library using npm or yarn:
npm install chargebee-js
# or
yarn add chargebee-js
How to use
Inside your JavaScript code, initialize chargebee and get Chargebee instance object. This object can further be used for enabling payment integrations, analytics like Google Analytics and Facebook pixel tracking, checkout and portal integrations and more.
import { loadChargebee } from "chargebee-js";
const cbInstance = loadChargebee({
site: "site-name", // your test site
domain: "https://mybilling.acme.com" // this is an optional parameter.
})Documentation
- For more information and usage, refer to Chargebee documentation.