Quick Start

Install

Install using either yarn or npm.
Yarn
NPM
# Install via Yarn
yarn add paymongo
# Install via NPM
npm install paymongo --save

Usage

Now, it's time to import the paymongo into your app.
import Paymongo from 'paymongo';
​
const paymongo = new Paymongo(process.env.SECRET_KEY);
You must retrieve the secret key from your paymongo dashboard, under the developers tab.

Example

import Paymongo from 'paymongo';
​
const paymongo = new Paymongo(process.env.SECRET_KEY);
​
async function listWebhooks () {
return paymongo.webhooks.list();
}
​
listWebhooks()
.then((result) => { /** Handle result **/ })
.catch();