1.0.10 • Published 7 years ago
payutr v1.0.10
PayU Turkey: Node.js Client
PayU Turkey Official Documentation
For test payment
payutr.setKeys('OPU_TEST', 'SECRET_KEY'); //-> Use this one for without 3D Secure
payutr.setKeys('PALJZXGV', 'f*%J7z6_#|5]s7V4[g3]'); //-> This for 3D Secure
Used Libraries
Run Sample
Go to project folder and
npm install
cd payutr-sample
npm install
npm start
Open browser and visit http://localhost:8080/
Usage
npm install payutr --save
var payutr = require('payutr');
payutr.setKeys('MERCHANT_KEY', 'SECRET_KEY');
payutr.makePayment(paymentData, function(error, response, body) {
xml2js.parseString(body, { explicitArray: false }, function(err, result) {
console.log(result);
});
});