Skip to content
node.js Zooz payment gateway integration library
CoffeeScript JavaScript

README.md

node-zooz

Build Status

Zooz Payment gateway node.js integration library

The library exposes API calls from both

  • zooz extended server API
  • zooz web mobile API

usage

var ZoozGateway = require('node-zooz').gateway;

var apiKeys = {
  "extendedServer": {
    "developerId": "john@gmail.com",
    "serverAPIKey": "111111111"
  },
  "web": {
    "ZooZUniqueID": "dev.company",
    "ZooZAppKey": "w2353453245234534"
  }
}

var zgw = new ZoozGateway(apiKeys);

zgw.openTransaction(1000, 'GBP', 'userId_1', 'REF#1', function(err, token){
  console.log('TOKEN', token);
});

api

#ctor(apiKeys, [httpClient], [transactionMapper], [opts])

  • apiKeys: object containing keys as described above
  • httpClient: a http.request compatible function
  • transactionMapper: a mapper?
  • opts: object with the following (but optional) keys
{
    logger: #function that will passed a string, or object, really for debugging
    sandboxMode: #[bool] if true will use zooz sandbox urls
    webUrl: #override for web mobile request url
    extendedServerUrl: #override for extended server request url
    config: #overide any found options as seen in./config.coffee
}

test

npm test

Something went wrong with that request. Please try again.