npm install agcod
Create a directory config in the root of your app. And add a development.json, sandbox.json and production.json in it that looks like config/example.json in this repo.
const Client = require('agcod')
const client = new Client()
client.createGiftCard('NA', 123, 'USD', (error, result) => {
console.log('client.createGiftCard response', error, result)
})During tests requests are intercepted by nock and responds with a desired response code and contents.