2017 © Pedro Peláez
 

library laravel-mollie

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

image

mollie/laravel-mollie

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

  • Monday, July 30, 2018
  • by willemmollie
  • Repository
  • 26 Watchers
  • 112 Stars
  • 46,955 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 17 Forks
  • 2 Open issues
  • 16 Versions
  • 17 % Grown

The README.md

, (*1)

Mollie for Laravel

create new payment, (*2)

Laravel-Mollie incorporates the Mollie API and Mollie Connect into your Laravel project., (*3)

Accepting iDEAL, Apple Pay, Bancontact/Mister Cash, SOFORT Banking, Creditcard, SEPA Bank transfer, SEPA Direct debit, PayPal, Belfius Direct Net, KBC/CBC, paysafecard, ING Home'Pay, Giftcards, Giropay, EPS and 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., (*4)

Looking for a complete recurring billing solution? Take a look at Laravel Cashier for Mollie instead., (*5)

Build Status Latest Stable Version Total Downloads, (*6)

Requirements

  • Get yourself a free Mollie account. No sign up costs.
  • Now you're ready to use the Mollie API client in test mode.
  • Follow a few steps to enable payment methods in live mode, and let us handle the rest.
  • Up-to-date OpenSSL (or other SSL/TLS toolkit)
  • PHP >= 8.1
  • Laravel >= 10.0
  • Laravel Socialite >= 5.0 (if you intend on using Mollie Connect)

Upgrading from v2.x?

To support the enhanced Mollie API, some breaking changes were introduced. Make sure to follow the instructions in the upgrade guide., (*7)

Fresh install? Continue with the installation guide below., (*8)

Installation

Add Laravel-Mollie to your composer file via the composer require command:, (*9)

composer require mollie/laravel-mollie

Or add it to composer.json manually:, (*10)

"require": {
    "mollie/laravel-mollie": "^3.0"
}

Laravel-Mollie's service providers will be automatically registered using Laravel's auto-discovery feature., (*11)

Configuration

You'll only need to add the MOLLIE_KEY variable to your .env file., (*12)

MOLLIE_KEY=test_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Example usage

Here you can see an example of just how simple this package is to use., (*13)

A payment using the Mollie API

use Mollie\Laravel\Facades\Mollie;

public function preparePayment()
{
    $payment = Mollie::api()->payments->create([
        "amount" => [
            "currency" => "EUR",
            "value" => "10.00" // You must send the correct number of decimals, thus we enforce the use of strings
        ],
        "description" => "Order #12345",
        "redirectUrl" => route('order.success'),
        "webhookUrl" => route('webhooks.mollie'),
        "metadata" => [
            "order_id" => "12345",
        ],
    ]);

    // 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::api()->payments->get($paymentId);

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

Other examples

Want to help us make our Laravel module even better?

Want to help us make our Laravel module even better? We take pull requests, sure. But how would you like to contribute to a technology oriented organization? Mollie is hiring developers and system engineers. Check out our vacancies or get in touch., (*14)

License

The MIT License. Copyright (c) 2024, Mollie B.V., (*15)

Support

Contact: www.mollie.com — info@mollie.com, (*16)

The Versions

30/07 2018

dev-master

9999999-dev https://github.com/mollie/laravel-mollie

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

  Sources   Download

BSD-2-Clause

The Requires

 

The Development Requires

by Mollie B.V.

laravel api service lumen payment gateway sepa direct debit payments bitcoin socialite paypal recurring mollie sofort creditcard ideal paysafecard subscriptions charges bancontact sofortbanking banktransfer mistercash belfius belfius direct net refunds podiumcadeaukaart

30/07 2018

v2.1.0

2.1.0.0 https://github.com/mollie/laravel-mollie

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

  Sources   Download

BSD-2-Clause

The Requires

 

The Development Requires

by Mollie B.V.

laravel api service lumen payment gateway sepa direct debit payments bitcoin socialite paypal recurring mollie sofort creditcard ideal paysafecard subscriptions charges bancontact sofortbanking banktransfer mistercash belfius belfius direct net refunds podiumcadeaukaart

09/07 2018

v2.0.0

2.0.0.0 https://github.com/mollie/laravel-mollie

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

  Sources   Download

BSD-2-Clause

The Requires

 

The Development Requires

by Mollie B.V.

laravel api service lumen payment gateway sepa direct debit payments bitcoin socialite paypal recurring mollie sofort creditcard ideal paysafecard subscriptions charges bancontact sofortbanking banktransfer mistercash belfius belfius direct net refunds podiumcadeaukaart

02/07 2018

v2.0.0-beta1

2.0.0.0-beta1 https://github.com/mollie/laravel-mollie

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

  Sources   Download

BSD-2-Clause

The Requires

 

The Development Requires

by Mollie B.V.

laravel api service lumen payment gateway sepa direct debit payments bitcoin socialite paypal recurring mollie sofort creditcard ideal paysafecard subscriptions charges bancontact sofortbanking banktransfer mistercash belfius belfius direct net refunds podiumcadeaukaart

12/09 2017

v1.5.1

1.5.1.0 https://github.com/mollie/laravel-mollie

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

  Sources   Download

BSD-2-Clause

The Requires

 

The Development Requires

by Mollie B.V.

laravel api service lumen payment gateway sepa direct debit payments bitcoin socialite paypal recurring mollie sofort creditcard ideal paysafecard subscriptions charges bancontact sofortbanking banktransfer mistercash belfius belfius direct net refunds podiumcadeaukaart

31/03 2017

v1.5.0

1.5.0.0 https://github.com/mollie/laravel-mollie

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

  Sources   Download

BSD-2-Clause

The Requires

 

The Development Requires

by Mollie B.V.

laravel api service lumen payment gateway sepa direct debit payments bitcoin socialite paypal recurring mollie sofort creditcard ideal paysafecard subscriptions charges bancontact sofortbanking banktransfer mistercash belfius belfius direct net refunds podiumcadeaukaart

07/02 2017

v1.4.2

1.4.2.0 https://github.com/mollie/laravel-mollie

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

  Sources   Download

BSD-2-Clause

The Requires

 

The Development Requires

by Mollie B.V.

laravel api service lumen payment gateway sepa direct debit payments bitcoin socialite paypal recurring mollie sofort creditcard ideal paysafecard subscriptions charges bancontact sofortbanking banktransfer mistercash belfius belfius direct net refunds podiumcadeaukaart

26/01 2017

v1.4.1

1.4.1.0 https://github.com/mollie/laravel-mollie

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

  Sources   Download

BSD-2-Clause

The Requires

 

The Development Requires

by Mollie B.V.

laravel api service lumen payment gateway sepa direct debit payments bitcoin socialite paypal recurring mollie sofort creditcard ideal paysafecard subscriptions charges bancontact sofortbanking banktransfer mistercash belfius belfius direct net refunds podiumcadeaukaart

10/08 2016

1.3.0

1.3.0.0 https://github.com/mollie/laravel-mollie

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

  Sources   Download

BSD-2-Clause

The Requires

 

The Development Requires

by Mollie B.V.

laravel api service lumen payment gateway sepa direct debit payments bitcoin socialite paypal recurring mollie sofort creditcard ideal paysafecard subscriptions charges bancontact sofortbanking banktransfer mistercash belfius belfius direct net refunds podiumcadeaukaart

04/08 2016

1.2.1

1.2.1.0 https://github.com/mollie/laravel-mollie

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

  Sources   Download

BSD-2-Clause

The Requires

 

The Development Requires

by Mollie B.V.

laravel api service lumen payment gateway sepa direct debit payments bitcoin socialite paypal recurring mollie sofort creditcard ideal paysafecard subscriptions charges bancontact sofortbanking banktransfer mistercash belfius belfius direct net refunds podiumcadeaukaart

16/06 2016

1.2.0

1.2.0.0 https://github.com/mollie/laravel-mollie

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

  Sources   Download

BSD-2-Clause

The Requires

 

The Development Requires

by Mollie B.V.

laravel api service lumen payment gateway sepa direct debit payments bitcoin socialite paypal recurring mollie sofort creditcard ideal paysafecard subscriptions charges bancontact sofortbanking banktransfer mistercash belfius belfius direct net refunds podiumcadeaukaart

25/05 2016

1.1.3

1.1.3.0 https://github.com/mollie/laravel-mollie

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

  Sources   Download

BSD-2-Clause

The Requires

 

by Mollie B.V.

laravel api service lumen payment gateway sepa direct debit payments bitcoin socialite paypal mollie sofort creditcard ideal paysafecard bancontact sofortbanking banktransfer mistercash belfius belfius direct net refunds podiumcadeaukaart

18/05 2016

1.1.2

1.1.2.0 https://github.com/mollie/laravel-mollie

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

  Sources   Download

BSD-2-Clause

The Requires

 

by Mollie B.V.

laravel api service lumen payment gateway sepa direct debit payments bitcoin socialite paypal mollie sofort creditcard ideal paysafecard bancontact sofortbanking banktransfer mistercash belfius belfius direct net refunds podiumcadeaukaart

11/05 2016

1.1.1

1.1.1.0 https://github.com/mollie/laravel-mollie

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

  Sources   Download

BSD-2-Clause

The Requires

 

by Mollie B.V.

laravel api service lumen payment gateway sepa direct debit payments bitcoin socialite paypal mollie sofort creditcard ideal paysafecard bancontact sofortbanking banktransfer mistercash belfius belfius direct net refunds podiumcadeaukaart

10/05 2016

1.1.0

1.1.0.0 https://github.com/mollie/laravel-mollie

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

  Sources   Download

BSD-2-Clause

The Requires

 

by Mollie B.V.

laravel api service lumen payment gateway sepa direct debit payments bitcoin socialite paypal mollie sofort creditcard ideal paysafecard bancontact sofortbanking banktransfer mistercash belfius belfius direct net refunds podiumcadeaukaart

03/05 2016

1.0.0

1.0.0.0 https://github.com/mollie/laravel-mollie

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

  Sources   Download

BSD-2-Clause

The Requires

 

by Mollie B.V.

laravel api service lumen payment gateway sepa direct debit payments bitcoin socialite paypal mollie sofort creditcard ideal paysafecard bancontact sofortbanking banktransfer mistercash belfius belfius direct net refunds podiumcadeaukaart