Prerequisites
Before installing, make sure you have the following:- Node.js (v16 or higher; the CLI needs v18)
- npm
- Python (at least 3.8)
- PHP (at least 8.1)
- Composer (for PHP dependency management)
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: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.
Install the Modem Pay CLI (optional)
To receive test webhooks on your machine and send sample events:bash
modempay listen to test webhooks locally and modempay trigger to simulate events.
