1.0.0 • Published 9 years ago
moneris v1.0.0
node-moneris
A wrapper to access the Moneris API.
Installation | Usage | Example | License
Installation
With npm:
npm install moneris --saveNote: You need an engine that supports ES6 (e.g. Babel or Node 4.0+).
Usage
moneris(credentials, req[, extended])
Queries the Moneris API with the information provided.
credentials: Required. An object with the following fields.api_token: Required. Your API token.store_id: Required. Your store ID.test: Optional. If true, uses Moneris Test endpoints. You can get aapi_tokenandstore_idfor this endpoint from Moneris's Documentation.falseby default.
req: Required. An object with the following fields.type: Required. The type of the request you wish to post.- ...All other fields that pertain to that type of request.
extended: Optional. Certain types of requests require additional parameters, including but not limited to CVD, AVS, etc. This is an object that will add directly to the sent data (whereasreqwill create its own child element)
Example
See tests/testPurchase.js
License
1.0.0
9 years ago