Skip to main content

Prerequisites

Before installing, make sure you have the following:

Install the Modem Pay SDK

To get started, install the SDK in your Node.js or Python project:

Initialize the SDK

To authenticate requests, instantiate the SDK with your Modem Pay secret API key:
🔐 Never expose your secret API key on the frontend or in public repositories.

Get Your API Key

  1. Log in to modempay.com.
  2. Go to Developers → API Keys.
  3. Generate or copy your secret key.
  4. Use this key when initializing the SDK.

Install the Modem Pay CLI (optional)

To receive test webhooks on your machine and send sample events:
bash
Use modempay listen to test webhooks locally and modempay trigger to simulate events.
See Modem Pay CLI for everything it can do.