A Craft CMS plugin that provides a payment gateway integration for Moneris using the Moneris Gateway API PHP library.
This plugin is configured to be installed via a path repository in your Craft CMS project's composer.json.
-
The path repository is already configured in your project's
composer.json:{ "repositories": [ { "type": "path", "url": "../_plugins/moneris" } ] } -
Install the plugin via Composer:
composer require moneris/moneris
-
Install the plugin in Craft CMS:
- Go to Settings → Plugins in the Craft CMS control panel
- Find "Moneris" in the plugin list
- Click "Install"
If you're using DDEV and the plugin is located outside your project directory, you may need to configure a mount point. Create config/docker-compose.plugin-mount.yml:
services:
web:
volumes:
- "$HOME/Sites/diabete-drummond/_plugins:/var/www/html/_plugins"Then update the path repository URL in composer.json to use the absolute path:
{
"repositories": [
{
"type": "path",
"url": "/var/www/html/_plugins/moneris"
}
]
}- Go to Commerce → Settings → Gateways
- Click "New Gateway"
- Select "Moneris" from the gateway type dropdown
- Configure the gateway settings:
- Store ID: Your Moneris Store ID (can use environment variables)
- API Token: Your Moneris API Token (can use environment variables)
- Environment: Select "Staging" or "Production"
- Enable AVS: Enable Address Verification System
- Enable CVD: Enable Card Verification Digit
You can use Craft CMS's environment variable autosuggest feature to set the Store ID and API Token. Simply type $ in the field and select from available environment variables, or type the variable name directly (e.g., $MONERIS_STORE_ID).
- Purchase: Direct payment processing
- Authorize: Pre-authorize payments
- Capture: Capture authorized payments
- Refund: Full and partial refunds
- AVS Support: Address Verification System
- CVD Support: Card Verification Digit
- Craft CMS 5.3.0 or later
- Craft Commerce 5.0.0 or later
- PHP 8.2 or later
allomambo/moneris-gateway-api-phpComposer package
Proprietary