PHPackages                             mollie/laravel-mollie - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. mollie/laravel-mollie

ActiveLibrary[API Development](/categories/api)

mollie/laravel-mollie
=====================

Mollie API client wrapper for Laravel &amp; Mollie Connect provider for Laravel Socialite

v4.1.0(1mo ago)3624.1M↓18.5%64[1 PRs](https://github.com/mollie/laravel-mollie/pulls)20MITPHPPHP ^8.2CI passing

Since May 3Pushed 1mo ago40 watchersCompare

[ Source](https://github.com/mollie/laravel-mollie)[ Packagist](https://packagist.org/packages/mollie/laravel-mollie)[ Docs](https://github.com/mollie/laravel-mollie)[ RSS](/packages/mollie-laravel-mollie/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (18)Versions (66)Used By (20)

 [![](https://private-user-images.githubusercontent.com/7265703/259760257-5fce72ed-3fee-4645-b29a-18d97407fcfd.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NzUyNjY1MzUsIm5iZiI6MTc3NTI2NjIzNSwicGF0aCI6Ii83MjY1NzAzLzI1OTc2MDI1Ny01ZmNlNzJlZC0zZmVlLTQ2NDUtYjI5YS0xOGQ5NzQwN2ZjZmQucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI2MDQwNCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNjA0MDRUMDEzMDM1WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9Y2I5MjYzZTU4Y2I1ODRhMzAyNDhmMTA2NzI5NzA4ZTc4OWJkNzZiNDNkYmNiMzc0MGQzYWRjZjhkY2VlODYzYyZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.8RK95l64UeMZQzvs-DVaF7u6hDNSt2V4uVYn_ROmk60)](https://private-user-images.githubusercontent.com/7265703/259760257-5fce72ed-3fee-4645-b29a-18d97407fcfd.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NzUyNjY1MzUsIm5iZiI6MTc3NTI2NjIzNSwicGF0aCI6Ii83MjY1NzAzLzI1OTc2MDI1Ny01ZmNlNzJlZC0zZmVlLTQ2NDUtYjI5YS0xOGQ5NzQwN2ZjZmQucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI2MDQwNCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNjA0MDRUMDEzMDM1WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9Y2I5MjYzZTU4Y2I1ODRhMzAyNDhmMTA2NzI5NzA4ZTc4OWJkNzZiNDNkYmNiMzc0MGQzYWRjZjhkY2VlODYzYyZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.8RK95l64UeMZQzvs-DVaF7u6hDNSt2V4uVYn_ROmk60)

Mollie for Laravel
==================

[](#mollie-for-laravel)

[![create new payment](https://private-user-images.githubusercontent.com/10154100/312850557-205b536f-51a3-4d1b-b2c9-69f02ba019fa.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIU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DQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYwNDA0VDAxMzAzNVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWNjYjlhMTliOTRiYmMwMjc2NGI5NDU2MmI1YzQwYzE2NmMxZTg5OTBhZjViZGVlZThiNzZjMjZiZWQxZjYyNDcmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.BpL6CqbuFKbgAPZsIQdI7B_F0dZkWWV4D8tQeGzefFA)

Laravel-Mollie incorporates the [Mollie API](https://docs.mollie.com/) and [Mollie Connect](https://www.mollie.com/products/connect) into your [Laravel](https://laravel.com/) project.

Accepting [iDEAL](https://www.mollie.com/en/payments/ideal/), [Apple Pay](https://www.mollie.com/en/payments/apple-pay), [Bancontact/Mister Cash](https://www.mollie.com/en/payments/bancontact/), [SOFORT Banking](https://www.mollie.com/en/payments/sofort/), [Creditcard](https://www.mollie.com/en/payments/credit-card/), [SEPA Bank transfer](https://www.mollie.com/en/payments/bank-transfer/), [SEPA Direct debit](https://www.mollie.com/en/payments/direct-debit/), [PayPal](https://www.mollie.com/en/payments/paypal/), [Belfius Direct Net](https://www.mollie.com/en/payments/belfius/), [KBC/CBC](https://www.mollie.com/en/payments/kbc-cbc/), [paysafecard](https://www.mollie.com/en/payments/paysafecard/), [ING Home'Pay](https://www.mollie.com/en/payments/ing-homepay/), [Giftcards](https://www.mollie.com/en/payments/gift-cards/), [Giropay](https://www.mollie.com/en/payments/giropay/), [EPS](https://www.mollie.com/en/payments/eps/) and [Przelewy24](https://www.mollie.com/en/payments/przelewy24/) online payments without fixed monthly costs or any punishing registration procedures. Just use the Mollie API to receive payments directly on your website or easily refund transactions to your customers.\*\*\*\*

**Looking for a complete recurring billing solution?** Take a look at [Laravel Cashier for Mollie](https://www.cashiermollie.com) instead.

[![Build Status](https://github.com/mollie/laravel-mollie/workflows/tests/badge.svg)](https://github.com/mollie/laravel-mollie/actions)[![Latest Stable Version](https://camo.githubusercontent.com/d26b6a088e07ecefedbbfbca42ad3b44dca2c37b231d8054e2afb1bf30df8eeb/68747470733a2f2f706f7365722e707567782e6f72672f6d6f6c6c69652f6c61726176656c2d6d6f6c6c69652f762f737461626c65)](https://packagist.org/packages/mollie/laravel-mollie)[![Total Downloads](https://camo.githubusercontent.com/79928996b867c3e052acf0034561697cd6619ecb86b09a5b2033dbee33160235/68747470733a2f2f706f7365722e707567782e6f72672f6d6f6c6c69652f6c61726176656c2d6d6f6c6c69652f646f776e6c6f616473)](https://packagist.org/packages/mollie/laravel-mollie)

**Requirements**
----------------

[](#requirements)

- Get yourself a free [Mollie account](https://my.mollie.com/dashboard/signup). No sign up costs.
- Now you're ready to use the Mollie API client in test mode.
- Follow [a few steps](https://www.mollie.com/dashboard/?modal=onboarding) to enable payment methods in live mode, and let us handle the rest.
- Up-to-date OpenSSL (or other SSL/TLS toolkit)
- PHP &gt;= 8.2
- [Laravel](https://www.laravel.com) &gt;= 11.0
- [Laravel Socialite](https://github.com/laravel/socialite) &gt;= 5.0 (if you intend on using [Mollie Connect](https://docs.mollie.com/oauth/overview))

Upgrading from v3.x?
--------------------

[](#upgrading-from-v3x)

To support the enhanced Mollie API v3, some breaking changes were introduced. Make sure to follow the instructions in the [upgrade guide](UPGRADE.md).

Fresh install? Continue with the installation guide below.

Installation
------------

[](#installation)

Add Laravel-Mollie to your composer file via the `composer require` command:

```
composer require mollie/laravel-mollie
```

Or add it to `composer.json` manually:

```
"require": {
    "mollie/laravel-mollie": "^4.0"
}
```

Laravel-Mollie's service providers will be automatically registered using Laravel's auto-discovery feature.

Configuration
-------------

[](#configuration)

You'll only need to add the `MOLLIE_KEY` variable to your `.env` file.

```
MOLLIE_KEY=test_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
```

Example usage
-------------

[](#example-usage)

Here you can see an example of just how simple this package is to use.

### A payment using the Mollie API

[](#a-payment-using-the-mollie-api)

```
use Mollie\Api\Http\Data\Money;
use Mollie\Laravel\Facades\Mollie;
use Mollie\Api\Http\Requests\GetPaymentRequest;
use Mollie\Api\Http\Requests\CreatePaymentRequest;

public function preparePayment()
{
    $request = new CreatePaymentRequest(
        description: 'Order #12345',
        amount: new Money('EUR', '10.00'),
        redirectUrl: route('order.success'),
        webhookUrl: route('webhooks.mollie'),
        metadata: [
            "order_id" => "12345",
            "customer_info" => [
                "name" => "John Doe",
                "email" => "john@example.com"
            ]
        ]
    );

    Mollie::send($request);

    // redirect customer to Mollie checkout page
    return redirect($payment->getCheckoutUrl(), 303);
}

/**
 * After the customer has completed the transaction,
 * you can fetch, check and process the payment.
 * This logic typically goes into the controller handling the inbound webhook request.
 * See the webhook docs in /docs and on mollie.com for more information.
 */
public function handleWebhookNotification(Request $request) {
    $paymentId = $request->input('id');

    $payment = Mollie::send(new GetPaymentRequest($paymentId));

    if ($payment->isPaid())
    {
        echo 'Payment received.';
        // Do your thing ...
    }
}
```

Other examples
--------------

[](#other-examples)

- [Process realtime status updates with a webhook](docs/webhook.md)
- [Recurring payments and direct charges](docs/recurring_and_direct_charge.md)
- [Using Mollie Connect with Laravel Socialite (OAuth)](docs/mollie_connect.md) (Leverage the Mollie platform for advanced payment use cases)

Want to help us make our Laravel module even better?
----------------------------------------------------

[](#want-to-help-us-make-our-laravel-module-even-better)

Want to help us make our Laravel module even better? We take [pull requests](https://github.com/mollie/laravel-mollie/pulls?utf8=%E2%9C%93&q=is%3Apr), sure. But how would you like to contribute to a technology oriented organization? Mollie is hiring developers and system engineers. [Check out our vacancies](https://jobs.mollie.com/) or [get in touch](mailto:personeel@mollie.com).

License
-------

[](#license)

[The MIT License](LICENSE.md). Copyright (c) 2024, Mollie B.V.

Support
-------

[](#support)

Contact: [www.mollie.com](https://www.mollie.com) —

- [More information about Mollie Connect](https://www.mollie.com/products/connect)
- [Documentation for the Mollie API](https://docs.mollie.com/)
- [Documentation for Mollie OAuth](https://docs.mollie.com/connect/getting-started)

###  Health Score

76

—

ExcellentBetter than 100% of packages

Maintenance89

Actively maintained with recent releases

Popularity64

Solid adoption and visibility

Community48

Growing community involvement

Maturity90

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 53.1% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~68 days

Recently: every ~99 days

Total

54

Last Release

57d ago

Major Versions

v1.5.1 → v2.0.0-beta12018-07-02

v2.25.0 → v3.0.02024-03-17

v3.1.0 → v4.0.02026-01-08

PHP version history (9 changes)1.2.0PHP ^5.5.9 || ^7.0

v2.0.0-beta1PHP &gt;=7.0.0

v2.7.1PHP ^7.1.3|^7.2

v2.11.0PHP ^7.2

v2.13.0PHP ^7.2|^8.0

v2.18.0PHP ^7.3|^8.0

v2.21.0PHP ^8.0

v3.0.0PHP ^8.1|^8.2

v4.0.0PHP ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/23d4c374cd27da6bed534538eb3514a06d2c15485e9d63a8991b277909ecfca8?d=identicon)[willemmollie](/maintainers/willemmollie)

![](https://www.gravatar.com/avatar/dabb609ac7cf4f097fb06aa0f774363ab1cd044cb785f154466564027bd46646?d=identicon)[lvgunst](/maintainers/lvgunst)

![](https://www.gravatar.com/avatar/945b9f760957f60f6f8e1704a70d419f6846017da6b7e1e7f51c5111c9d920b0?d=identicon)[Daanvm](/maintainers/Daanvm)

![](https://avatars.githubusercontent.com/u/6184158?v=4)[Robbert Schreuder Hes](/maintainers/mollierobbert)[@mollierobbert](https://github.com/mollierobbert)

![](https://www.gravatar.com/avatar/0db6d714561c942dd2d7f9f97bd7543886d7bfdd61372b594b2312850fd99f2c?d=identicon)[molops](/maintainers/molops)

---

Top Contributors

[![sandervanhooft](https://avatars.githubusercontent.com/u/7265703?v=4)](https://github.com/sandervanhooft "sandervanhooft (186 commits)")[![Naoray](https://avatars.githubusercontent.com/u/10154100?v=4)](https://github.com/Naoray "Naoray (90 commits)")[![ciungulete](https://avatars.githubusercontent.com/u/742128?v=4)](https://github.com/ciungulete "ciungulete (16 commits)")[![FaaPz](https://avatars.githubusercontent.com/u/1536742?v=4)](https://github.com/FaaPz "FaaPz (12 commits)")[![jnoordsij](https://avatars.githubusercontent.com/u/45041769?v=4)](https://github.com/jnoordsij "jnoordsij (6 commits)")[![Skullbock](https://avatars.githubusercontent.com/u/1104083?v=4)](https://github.com/Skullbock "Skullbock (4 commits)")[![laravel-shift](https://avatars.githubusercontent.com/u/15991828?v=4)](https://github.com/laravel-shift "laravel-shift (4 commits)")[![robindirksen1](https://avatars.githubusercontent.com/u/22446895?v=4)](https://github.com/robindirksen1 "robindirksen1 (3 commits)")[![ndijkstra](https://avatars.githubusercontent.com/u/3372841?v=4)](https://github.com/ndijkstra "ndijkstra (2 commits)")[![ptondereau](https://avatars.githubusercontent.com/u/4287777?v=4)](https://github.com/ptondereau "ptondereau (2 commits)")[![ricardodevries](https://avatars.githubusercontent.com/u/78354174?v=4)](https://github.com/ricardodevries "ricardodevries (2 commits)")[![joshuadegier](https://avatars.githubusercontent.com/u/2580917?v=4)](https://github.com/joshuadegier "joshuadegier (2 commits)")[![Jubeki](https://avatars.githubusercontent.com/u/15707543?v=4)](https://github.com/Jubeki "Jubeki (2 commits)")[![juukie](https://avatars.githubusercontent.com/u/2678657?v=4)](https://github.com/juukie "juukie (2 commits)")[![freekmurze](https://avatars.githubusercontent.com/u/483853?v=4)](https://github.com/freekmurze "freekmurze (2 commits)")[![xewl](https://avatars.githubusercontent.com/u/245041?v=4)](https://github.com/xewl "xewl (1 commits)")[![fatelgit](https://avatars.githubusercontent.com/u/13215733?v=4)](https://github.com/fatelgit "fatelgit (1 commits)")[![it-can](https://avatars.githubusercontent.com/u/644288?v=4)](https://github.com/it-can "it-can (1 commits)")[![koenhoeijmakers](https://avatars.githubusercontent.com/u/2232776?v=4)](https://github.com/koenhoeijmakers "koenhoeijmakers (1 commits)")[![MSnoeren](https://avatars.githubusercontent.com/u/3404401?v=4)](https://github.com/MSnoeren "MSnoeren (1 commits)")

---

Tags

apilaravellumenservicesocialiterecurringpaymentpaymentsgatewaypaypalidealmolliepaysafecardsepasubscriptionscreditcardsofortdirect debitmistercashbancontactsofortbankingchargesbanktransferbelfiusbelfius direct netrefundsPrzelewy24podiumcadeaukaartApple Pay

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StyleLaravel Pint

Type Coverage Yes

### Embed Badge

![Health badge](/badges/mollie-laravel-mollie/health.svg)

```
[![Health](https://phpackages.com/badges/mollie-laravel-mollie/health.svg)](https://phpackages.com/packages/mollie-laravel-mollie)
```

###  Alternatives

[mollie/mollie-api-php

Mollie API client library for PHP. Mollie is a European Payment Service provider and offers international payment methods such as Mastercard, VISA, American Express and PayPal, and local payment methods such as iDEAL, Bancontact, SOFORT Banking, SEPA direct debit, Belfius Direct Net, KBC Payment Button and various gift cards such as Podiumcadeaukaart and fashioncheque.

60014.4M62](/packages/mollie-mollie-api-php)[mollie/magento2

Mollie Payment Module for Magento 2

1121.6M10](/packages/mollie-magento2)[mollie/magento

iDEAL, Creditcard, Bancontact/Mister Cash, SOFORT, Bank transfer, Bitcoin, PayPal &amp; paysafecard for Magento https://www.mollie.com/

397.9k](/packages/mollie-magento)[mollie/oauth2-mollie-php

Mollie Provider for OAuth 2.0 Client

251.7M1](/packages/mollie-oauth2-mollie-php)[mage2pro/stripe

Stripe integration with Magento 2

605.3k](/packages/mage2pro-stripe)[mollie/laravel-cashier-mollie

Laravel Cashier provides an expressive, fluent interface to Mollie's subscription billing services.

172155.4k1](/packages/mollie-laravel-cashier-mollie)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
