A payment gateway extension for Paymenter that integrates MCsets Enterprise for hosted checkout payments.
- Customer clicks Pay on a Paymenter invoice
- Extension creates a checkout session via the MCsets API
- Customer is redirected to the MCsets hosted checkout page
- After payment, customer is sent back to their invoice
- MCsets fires a webhook → invoice is automatically marked as paid
- Paymenter v1.x
- PHP 8.3+
- MCsets Enterprise account → mcsets.com
- HTTPS on your domain
git clone https://github.com/probablysubeditor69204/Mcsets-Paymenter /var/www/paymenter/extensions/Gateways/MCsetsOpen bootstrap/app.php and add inside ->withMiddleware:
$middleware->validateCsrfTokens(except: [
'/extensions/gateways/mcsets/webhook',
]);- URL:
https://your-domain.com/extensions/gateways/mcsets/webhook - Event:
checkout.session.completed - Save the secret — shown only once
Go to Admin → Gateways → New Gateway → MCsets and fill in:
| Field | Description |
|---|---|
| Live API Key | Your ent_live_xxxx key |
| Webhook Secret | Secret from step 2 |
| Test Mode | Enable to test without real charges |
| Test API Key | Your ent_test_xxxx key |
cd /var/www/paymenter && php artisan optimize:clearUSD EUR GBP CAD AUD SEK NOK DKK CHF PLN
Minimum payment: $1.00
MCsets charges 7% + $0.50 per transaction, deducted before settlement.
| Payment | Fee | You Receive |
|---|---|---|
| $10.00 | $1.20 | $8.80 |
| $50.00 | $4.00 | $46.00 |
| $100.00 | $7.50 | $92.50 |
extensions/Gateways/MCsets/
├── MCsets.php
├── routes/
│ └── web.php
├── views/
│ └── error.blade.php
└── README.md
Licensed under the MIT License.