cake-capital-checkout

1.1.6 • Public • Published

Welcome to Cake Capital Checkout Node Library

The Cake Capital Checkout library provides convenient way to collect payments from your customers by providing built in checkout page, with very easy and minimal code implementation.

Installation

Install the package with:

npm i cake-capital-checkout
# or
npm install cake-capital-checkout

Usage

const cakeCapitalCheckout = require("cake-capital-checkout");
YOUR_DOMAIN = "https://..........";

var sessionUrl = await cakeCapitalCheckout.createSession({
    token: YOUR_MERCHANT_TOKEN,
    amount: 50.99,
    order_id: "dd_98765redfgy7........", // your unique order id
    cancel_url: YOUR_DOMAIN + "/cancel",
    success_url: YOUR_DOMAIN + "/success",
});

redirect(sessionUrl);

Token can be found in your Cake Capital Portal account.

Readme

Keywords

Package Sidebar

Install

npm i cake-capital-checkout

Weekly Downloads

35

Version

1.1.6

License

ISC

Unpacked Size

1.7 kB

Total Files

3

Last publish

Collaborators

  • deepak-kumar-24