Developed with love by KnpLabs Hire us for your project!
32

PaymentMollieBundle

by ruudk

NO LONGER MAINTAINED

RuudkPaymentMollieBundle

A Symfony2 Bundle that provides access to the Mollie API. Based on JMSPaymentCoreBundle.

Installation

Step1: Require the package with Composer

composer require ruudk/payment-mollie-bundle

Step2: Enable the bundle

Enable the bundle in the kernel:

<?php
// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...

        new Ruudk\Payment\MollieBundle\RuudkPaymentMollieBundle(),
    );
}

Step3: Configure

Add the following to your routing.yml:
yaml
ruudk_payment_mollie_notifications:
pattern: /webhook/mollie
defaults: { _controller: ruudk_payment_mollie.controller.notification:processNotification }
methods: [GET, POST]

Add the following to your config.yml:
yaml
ruudk_payment_mollie:
api_key: Your API key
logger: true/false # Default true
methods:
- ideal
- mistercash
- creditcard
- sofort
- banktransfer
- belfius
- kbc
- inghomepay
- bitcoin
- paypal
- paysafecard
- ...

See the Mollie API documentation for all available methods.

Make sure you set the return_url in the predefined_data for every payment method you enable:
php
$form = $this->getFormFactory()->create('jms_choose_payment_method', null, array(
'amount' => $order->getAmount(),
'currency' => 'EUR',
'predefined_data' => array(
'mollie_ideal' => array(
'return_url' => $this->generateUrl('order_complete', array(), true),
),
),
));

It's also possible to set a description for the transaction in the predefined_data.

To use the Mollie Webhook you should also set the notify_url for every transaction. You can use the default
processNotification route ruudk_payment_mollie_notifications for this url.

See JMSPaymentCoreBundle documentation for more info.

The MIT License (MIT)

Copyright (c) 2013 Ruud Kamphuis

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  • Update README.md
    By ruudk, 1 year ago
  • Merge pull request #31 from ruudk/symfony-4
    By web-flow, 1 year ago
  • Merge branch 'master' into symfony-4
    By web-flow, 1 year ago
  • Tag controller with `controller.service_arguments`
    By web-flow, 1 year ago
  • Remove request service
    By web-flow, 1 year ago
  • Merge pull request #32 from insiders/feature/deprecations
    By web-flow, 2 years ago
  • Fix deprecations
    By Danny van Wijk, 2 years ago
  • Allow Symfony 4
    By web-flow, 2 years ago
  • Merge pull request #30 from adri/patch-1
    By web-flow, 2 years ago
  • Handles payment failed case
    By web-flow, 2 years ago
  • Require SF 3.4 again
    By web-flow, 2 years ago
  • Fix form 3.3
    By web-flow, 2 years ago
  • Allow SF 3.3 again
    By web-flow, 2 years ago
  • Require Omnipay V3
    By web-flow, 2 years ago
  • Make sure to pass issuers value to iDEALType
    By web-flow, 2 years ago
  • Require Symfony 3.4+
    By web-flow, 2 years ago
  • Remove deprecated `choices_as_values`
    By web-flow, 2 years ago
  • Merge pull request #28 from Smitsel/missing-methods-ideal-issuers
    By web-flow, 2 years ago
  • Reverted the Bunq label change
    By Martijn Smit, 2 years ago
  • Add missing methods and iDEAL issuers
    By Martijn Smit, 2 years ago
  • Merge pull request #27 from frankrrr/use-live-issuers
    By web-flow, 2 years ago
  • Add all banks
    By web-flow, 2 years ago
  • Use live issuers
    By frankrrr, 2 years ago
  • Merge pull request #25 from wame/master
    By web-flow, 3 years ago
  • Merge pull request #1 from wame/fix-webhook-option-4
    By web-flow, 3 years ago
  • Add webhook instructions to readme.
    By mennowame, 3 years ago
  • fix option for webhook by adding notify_url to parameters if provided
    By Kevin Driessen, 3 years ago
  • Merge pull request #22 from msvrtan/add-kbc
    By web-flow, 4 years ago
  • Add KBC/CBC support
    By msvrtan, 4 years ago
  • Add support for bank transfert and belfius payment methods
    By , 4 years ago