UNPKG

venmo-api

Version:

A Node wrapper for the Venmo API

32 lines (24 loc) 520 B
'use strict'; const config = require('../local.env'); const Sandbox = require('../src/sandbox'); var sandbox = new Sandbox(config.VENMO_ACCESS_TOKEN); sandbox.settledPayment() .then(function(r) { console.log(r); }); sandbox.failedPayment() .then(function(r) { console.log(r); }); sandbox.pendingPayment() .then(function(r) { console.log(r); }); sandbox.settledCharge() .then(function(r) { console.log(r); }); sandbox.pendingCharge() .then(function(r) { console.log(r); });