Apache Cordova android plugin for Payhere 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: "[email protected]", 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); } ); Note: This version has support for Android platform only. iOS support is not added (Yet)