cboxdk / laravel-billing-mollie
Cbox Billing — Mollie payment-gateway adapter: a PaymentGateway implementation backed by Mollie, for cboxdk/laravel-billing.
v0.1.0
2026-07-15 14:29 UTC
Requires
- php: ^8.4
- cboxdk/laravel-billing: ^0.1
- illuminate/contracts: ^13.0
- illuminate/support: ^13.0
- mollie/mollie-api-php: ^3.13
Requires (Dev)
- larastan/larastan: ^3.0
- laravel/pint: ^1.18
- orchestra/testbench: ^11.0
- pestphp/pest: ^4.0
README
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.