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
- Log in to your ModemPay Dashboard
- Go to Developers → API Keys
- Copy your keys
- 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!