Resolve offers automated net terms for B2B. The Resolve NodeJS library is a wrapper around the Resolve API.
To better understand how this library works, read the Resolve API docs.
With npm
npm install resolve-node --save
With Yarn
yarn add resolve-node
The client is authenticated using your Merchant ID and secret key. You can find these details in your dashboard under Settings > Integrations.
Basic usage
const resolve = require('resolve-node');
resolve.init('merchant_id', 'secret_key');
await resolve.charges.create({
amount: 100,
customer_id: 'jetpJPb4D8',
order_id: 'jDZi2Bdx8x',
captured: true,
po_number: 'PO9999',
terms: 'net60'
});