mlepay
v0.1.1
Published
Node.js client for ML ePay (https://mlepay.com)
Downloads
6
Maintainers
Readme
mlepay
Client for ML ePay.
###Install
$ npm install mlepay
###Write index.js
var Mlepay = require('mlepay');
var mlepay = new Mlepay({receiver_email:process.env.EMAIL, secret_key:process.env.SECRET_KEY});
var options = {
sender_email: "[email protected]",
sender_name: "Test",
sender_phone: "+639178888888",
sender_address: "Malacanang Palace",
amount: 100000,
payload: "123456",
description: "iPhone 6S Plus Grey 128 GB",
};
mlepay.createNewTransaction(options)
.then(function(transaction) {
console.dir(transaction);
})
.catch(function(err) {
console.error(err);
});
###Run
$ [email protected] SECRET_KEY=verylongsecretkeyfrommlepaypanel node .