Skip to content

distilagency/pxpay2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

pxpay

This is fork from https://github.com/Kevnz/pxpay

Added aditional feature of parsing results of DPS transaction

PxPay implementation for node.js

Initial URL Request

var pxpay = require('pxpay2');
pxpay.request({
    user: 'TestAccount',
    password: 'password',
    amount: '1.00',
    reference: 'Test',
    TxnId: 'test-' + Date.now(),
    addCard: 1,
    successURL: 'http://example.com/success',
    failURL: 'http://example.com/fail'
}, function submitcallback (err, result) {

    result.$.valid; //=== 1

});

Parsing DPS Return results

var pxpay = require('pxpay2');
pxpay.request({
    user: 'TestAccount',
    password: 'password',
    Response: 'encrypted-token-result-from-dps'
}, function submitcallback (err, result) {

    result.$.valid; //=== 1

});

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •