Skip to content

Latest commit

 

History

History
29 lines (20 loc) · 941 Bytes

README.md

File metadata and controls

29 lines (20 loc) · 941 Bytes

Authorize.net Request

Dependency Status devDependency Status

Install

npm install auth-net-request

Usage

var AuthorizeRequest = require('auth-net-request');

var Request = new AuthorizeRequest({
  api: '123',
  key: '1234',
  cert: '/path/to/cert.pem',
  rejectUnauthorized: false, // true
  requestCert: true, // false
  agent: false // http.agent object
  sandbox: false // true
});

Request.send(<method>, <xml>, [xmlOptions], function(err, response) {});

Note

Version >= 2.x.x has a breaking change, all values are returned as strings rather than strings and numbers (unless the value is an object, array, etc).