node-nestpay-v3
Version:
A Node.js wrapper for the NestPay V3 API
26 lines (20 loc) • 485 B
JavaScript
var nodeNestpay = require('../index.js');
nestpay = new nodeNestpay({
name: 'AKTESTAPI',
password: 'AKBANK01',
clientId: 100100000,
endpoint: 'asseco',
currency: 'TRY'
});
nestpay.purchase({
number: '5456165456165454',
year: '12',
month: '12',
cvv: '000',
amount: '10'
}).then(function (purchaseResult) {
console.log('Purchased');
console.log(purchaseResult);
}).catch(function (purchaseError) {
console.log(purchaseError);
});