Getting Started
Installation
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
- Log in to modempay.com.
- Go to Developers → API Keys.
- Generate or copy your secret key.
- Use this key when initializing the SDK.
(Optional) Install the Modem Pay CLI
For local webhook testing and simulation in a test environment, you can install the CLI globally:
bash
Use modempay listen
to test webhooks locally and modempay trigger
to simulate events.
For full CLI usage, visit the CLI docs.