Quick Start

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

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.

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();
Copy link
On this page
Install
Usage
Example