GithubHelp home page GithubHelp logo

hirenf14 / chargebee-js Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 744 KB

ChargeebeeJS Client SDK package

Home Page: https://www.npmjs.com/package/chargebee-js

TypeScript 77.50% JavaScript 22.50%
chargebee client-sdk javascript

chargebee-js's Introduction

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

Made with ❤️ by Hiren F | GitHub

chargebee-js's People

Contributors

hirenf14 avatar dependabot[bot] avatar github-actions[bot] avatar

Stargazers

David Durco avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.