2.2.0 • Published 3 years ago

khalti-checkout-web v2.2.0

Weekly downloads
201
License
MIT
Repository
github
Last release
3 years ago

Introduction

Khalti checkout loader for browser.

Installation

Yarn

yarn add khalti-checkout-web

npm

npm install --save khalti-checkout-web

Usage

import KhaltiCheckout from "khalti-web";

let config = {
  "publicKey": "test_public_key_dc74e0fd57cb46cd93832aee0a507256",
  "productIdentity": "1234567890",
  "productName": "Drogon",
  "productUrl": "http://gameofthrones.com/buy/Dragons",
  "eventHandler": {
    onSuccess (payload) {
      // hit merchant api for initiating verfication
      console.log(payload);
    },
    // onError handler is optional
    onError (error) {
      // handle errors
      console.log(error);
    }
  },
  // one can set the order of payment options and also the payment options based on the order and items in the array
  paymentPreference: [
    "MOBILE_BANKING",
    "KHALTI",
    "EBANKING",
    "CONNECT_IPS",
    "SCT",
  ],
};

let checkout = new KhaltiCheckout(config);
let btn = document.getElementById("payment-button");
btn.onclick = function () {
	checkout.show({amount: 1000});
}

Please visit documentation site for details.

2.2.0

3 years ago

2.1.3

3 years ago

2.1.2

4 years ago

2.1.1

4 years ago

2.1.0

4 years ago

2.0.9

4 years ago

2.0.8

4 years ago

2.0.7

4 years ago

2.0.6

4 years ago

2.0.5

4 years ago

2.0.3

4 years ago

2.0.4

4 years ago

2.0.2

4 years ago

2.0.1

4 years ago

2.0.0

4 years ago

2.0.0-beta.3.6

4 years ago

2.0.0-beta.3.4

4 years ago

2.0.0-beta.3.5

4 years ago

2.0.0-beta.3.3

4 years ago

2.0.0-beta.3.1

4 years ago

2.0.0-beta.3.2

4 years ago

2.0.0-beta.3

4 years ago

2.0.0-beta.2.5

4 years ago

2.0.0-beta.2.6

4 years ago

2.0.0-beta.2.4

4 years ago

2.0.0-beta.2.3

4 years ago

2.0.0-beta.2.2

4 years ago

2.0.0-beta.2.1

4 years ago

2.0.0-beta.2

4 years ago

2.0.0-beta.1

4 years ago

2.0.0-beta.0

4 years ago