New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

chargebee-js

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

chargebee-js

Javascript Client SDK to implement Chargebee on frontend.

latest
Source
npmnpm
Version
1.0.5
Version published
Weekly downloads
2K
-1.67%
Maintainers
1
Weekly downloads
 
Created
Source

Chargebee.js ES Module

License npm version NPM Downloads GitHub Repo stars Code Climate maintainability

Example | CHANGELOG

chargebee-js is npm package to include Chargebee's browser script, instead of adding it as script tag in HTML pages for JS frameworks. Use Chargebee.js as an ES module.

Note: To be PCI compliant, you must load Chargebee.js directly from https://js.chargebee.com. You cannot include it in a bundle or host it yourself. This package wraps the global Chargebee function provided by the Chargebee.js script as an ES module.

Calling loadChargebee always loads the latest version of Chargebee.js, regardless of which version of chargebee-js you use. Updates for this package only impact tooling around the loadChargebee helper itself and the TypeScript type definitions provided for Chargebee.js. Updates do not affect runtime availability of features of Chargebee.js.

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.

Made with ❤️ by Hiren F | GitHub

Keywords

chargebee

FAQs

Package last updated on 16 Apr 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts