node package manager
Loosely couple your services. Use Orgs to version and reuse your code. Create a free org »

pxpay

Build Status

pxpay

PxPay implementation for node.js

Node module to use the PxPay service from Payment Express.

Install

$ npm install pxpay --save

Usage

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