laravel-billing-mollie maintained by cboxdk
Cbox Billing — Mollie
cboxdk/laravel-billing-mollie — a Mollie payment-gateway adapter for
cboxdk/laravel-billing. It implements
billing's PaymentGateway contract backed by Mollie.
Install
composer require cboxdk/laravel-billing-mollie
// .env
MOLLIE_KEY=live_...
MOLLIE_REDIRECT_URL=https://your-app.test/billing/return
With a key set, the provider binds Cbox\Billing\Payment\Contracts\PaymentGateway
to the Mollie gateway. Mollie is redirect-based, so a payment starts open
(pending) until the customer completes it and Mollie confirms paid.
Design
- SDK isolated behind a seam (
MollieIntentCreator): the realMollieApiIntentCreatorwraps the Mollie SDK; aFakeMollieIntentCreatordrives the tests — so status-mapping and error handling are unit-tested without the network. - Never throws. An API failure becomes a failed
PaymentResult; Mollie statuses map tosucceeded(paid) /pending(open) /requires_action(authorized) /failed.
The SDK wrapper implements Mollie's documented API shape — verify against the live Mollie API before relying on it in production.
Requirements
PHP ^8.4; Laravel ^12 || ^13; mollie/mollie-api-php ^3.13; cboxdk/laravel-billing.
License
MIT.