Skip to main content
Configure Modem Pay for your Laravel app.

Environment Variables

Add these to your .env file:
Never commit your API keys to version control. Always use .env file.

Publish Config (Optional)

If you need to customize settings, publish the config file:
This creates config/modempay.php:

Getting Your API Keys

  1. Log in to your ModemPay Dashboard
  2. Go to DevelopersAPI Keys
  3. Copy your keys
  4. Add them to .env
Use test keys during development and live keys in production.

Verifying Setup

Test your configuration in Tinker:
If this works, you’re all set!