1.0.10 • Published 6 years ago

payutr v1.0.10

Weekly downloads
1
License
ISC
Repository
github
Last release
6 years ago

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

6 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago