Skip to content
A node module for using the Payment Express PXPost service for payment processing
JavaScript
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
tests
.gitignore
.travis.yml
LICENSE
README.md
index.js
package.json
test.js

README.md

Build Status

pxpost

A node module for using the Payment Express PXPost service for payment processing. Currently only supporting making payments.

Usage

var pxpost = require('pxpost');
pxpost.submit({
    user: 'PaymentExpressUser',
    password: 'PaymentExpressPassword',
    amount: '100.00',
    currency: 'NZD', //defaults to NZD
    transactionType: 'purchase', //default and currently only supported option
    reference: 'Merchant Reference',
    card: {
        name: 'John Doe',
        number: '4716710503591290',
        expiry:'1015',
        cvc2: '123'
    }
} ,function (err, result) {
    if (err) {
        //do something
    } else {
        console.log(result.Authorized);//Will be 1 for successful transaction
    }
});
Something went wrong with that request. Please try again.