What you get

A payment record and a provider port, so the thing being paid for stays your own entity.

  • Mollie built in

    A Mollie backend creates payments and reads their status, mapping the provider's vocabulary onto your domain's payment statuses.

  • Status updates from the provider

    The provider's webhook moves a payment's status, and the record being paid for follows.

  • Pay for anything

    Any entity in your model with an amount, a currency and a payment reference can be paid for. The module does not need to know what it is.

  • Tested out of the box

    Generated tests include a fake provider, so your payment flow is covered without calling the real one.

How it works

Starting a payment belongs to the record being paid for, an order, a booking or a ticket, so that stays in your application. The Payments module owns the payment itself and the port to the provider. Which entity is payable is a configuration value per environment.

The provider is a component like any other, so adding another provider means adding an adapter, not rewriting your checkout.