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();
Last modified 1yr ago