Package Exports
- mlepay
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (mlepay) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
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: "node@example.com",
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=your@email.ph SECRET_KEY=verylongsecretkeyfrommlepaypanel node .