You're Invited: Meet the Socket team at BSidesSF and RSAC - April 27 - May 1.RSVP
Socket
Sign inDemoInstall
Socket

moneris

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

moneris

A wrapper for Moneris API.

1.0.0
latest
Source
npm
Version published
Weekly downloads
35
400%
Maintainers
1
Weekly downloads
 
Created
Source

node-moneris

A wrapper to access the Moneris API.

NPM version Build Status js-standard-style

Installation | Usage | Example | License

Installation

With npm:

npm install moneris --save

Note: 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 a api_token and store_id for this endpoint from Moneris's Documentation. false by 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 (whereas req will create its own child element)

Example

See tests/testPurchase.js

License

MIT

Keywords

moneris

FAQs

Package last updated on 16 Dec 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts