The Veem Node SDK provides a simple interface for interacting with the Veem Global Payments API for server-side Javascript applications.
npm install veem-node-sdk --save
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)
The SDK supports Promises for handling responses and errors:
Veem.payment.send(payment)
.then(responseBody => console.log(responseBody))
.catch(error => console.error(error))
npm install
npm run test