Quick Start

Install

Install using either yarn or npm.

# Install via Yarn
yarn add paymongo

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();

Last updated