PayU Turkey Nodejs


Keywords
payu, turkiye, turkey, nodejs, npm
License
ISC
Install
npm install payutr@1.0.10

Documentation

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

Request

crypto-js

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);
    });
});