cordova-payhere-client-2

0.0.6 • Public • Published

Apache Cordova android plugin payhere.lk payment gateway

Installation

	npm install cordova-payhere-client --save
	cordova plugin add cordova-payhere-client

Usage Example

        window.payhereClient.checkout( {
	    merchantId: "<PAYHERE_SANDBOX_MERCHANT_ID>",
	    merchantSecret: "<PAYHERE_SANDBOX_MERCHANT_SECRET>",
            amount: 1180.50, // Amount which the customer should pay
            currency: "LKR",
            orderId: "123",
            itemsDescription: "Desc",
            custom1: "",
            custom2: "",
            customer: {
              firstName: "Dan",
              lastName: "Jay",
              email: "shandanjay@gmail.com",
              phone: "0715753168"
            },
            billing: {
              address: "5A",
              city: "Colombo",
              country: "Sri Lanka"
            },
            shipping: {
              address: "Park Avenue", //shipping
              city: "5A", // shipping
              country: "" //shipping
            }
            //Item(null, "Door bell wireless", 1));

          },
          function (param) {
            console.log(param);
          },
          function (param) {
            console.log(param);
          }
        );

/cordova-payhere-client-2/

    Package Sidebar

    Install

    npm i cordova-payhere-client-2

    Weekly Downloads

    3

    Version

    0.0.6

    License

    ISC

    Unpacked Size

    8.39 kB

    Total Files

    6

    Last publish

    Collaborators

    • danjay