3.0.0 • Published 5 years ago

pxpost v3.0.0

Weekly downloads
2,642
License
MIT
Repository
github
Last release
5 years ago

PxPost

Build Status Coverage Status

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

Install

$ npm install pxpost

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

Notes

If you are running in production it uses the Payment Express production URL, otherwise it uses the UAT url.

3.0.0

5 years ago

2.1.0

5 years ago

2.0.3

5 years ago

2.0.2

5 years ago

2.0.1

5 years ago

2.0.0

5 years ago

1.0.0

9 years ago

0.0.1

10 years ago