Skip to content

veeminc/veem-node-sdk

Repository files navigation

veem-node-sdk

CircleCI npm version

The Veem Node SDK provides a simple interface for interacting with the Veem Global Payments API for server-side Javascript applications.

References

Installation

npm install veem-node-sdk --save

Usage

The Veem Node SDK requires you to generate an access token in order to authenticate the requests. You can manage your applications and generate access tokens from the Developer Dashboard.

import Veem from 'veem-node-sdk'

var Veem = new Veem({
  accessToken: '<access_token>',
})

Veem.payment.send(payment, callback)

Using Promises

The SDK supports Promises for handling responses and errors:

Veem.payment.send(payment)
  .then(responseBody => console.log(responseBody))
  .catch(error => console.error(error))

Development

Setup Environment

npm install

Run Tests

npm run test