Gateway.voidTransaction()

Void a non-settled transaction

Usage

Hover over inputs/exits for more info.

var Gateway = require('machinepack-gateway');


// Void a non-settled transaction

Gateway.voidTransaction({

credential: '...{"apiLogin": "this info"}...',

transaction: '...{"firstname": "John"}...',

gateway: 'Authorize.Net',

testMode: 'false',

}).exec({

// An unexpected error occurred.

error: function (err) {

 

},

// OK.

success: function () {

 

},

});

Inputs

credential required

Username and / pasword / token etc required to access your gateway account

'...{"apiLogin": "this info"}...'
transaction required

Credit Card Sale info

'...{"firstname": "John"}...'
gateway required

Code name of gateway to use

'Authorize.Net'
testMode required

is this a test?

'false'

Exits

error

An unexpected error occurred.

success

OK.