2017 © Pedro Peláez
 

library payum-mollie

The Payum extension. It provides Mollie payment integration.

image

payhelper/payum-mollie

The Payum extension. It provides Mollie payment integration.

  • Wednesday, November 8, 2017
  • by takeit
  • Repository
  • 5 Watchers
  • 3 Stars
  • 487 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 1 Versions
  • 8 % Grown

The README.md

Payum Mollie Extension Build Status StyleCI

The Payum extension. It provides Mollie payment integration., (*1)

Getting Started

Requirements

This library requires PHP 7.1 or higher., (*2)

Installing the extension

Install this extension as a Composer dependency by requiring it in a composer.json file:, (*3)

composer require payhelper/payum-mollie

Register the Mollie Payum factory using PayumBuilder:, (*4)

use Payum\Core\GatewayFactoryInterface;
use PayHelper\Payum\Mollie\MollieGatewayFactory;

$payumBuilder->addGatewayFactory('mollie', function(array $config, GatewayFactoryInterface $gatewayFactory) {
    return new MollieGatewayFactory($config, $gatewayFactory);
});

$payumBuilder->addGateway('mollie', [
    'factory' => 'mollie',
    'apiKey' => 'api123456', // change this
    'method' => 'creditcard', // one of directdebit, creditcard or directdebit_oneoff
]);

To work properly, Mollie gateway requires some additional fields being passed to the details of the payment. See the section below., (*5)

Supported methods

Check the documentation for each payment method to find out which fields are requred in order to make use of the methods., (*6)

Symfony integration

  1. PayumBundle installation

In order to use that extension with the Symfony, you will need to install PayumBundle first and configure it according to its documentation., (*7)

composer require payum/payum-bundle ^2.0
  1. Register Mollie Gateway Factory as a service
# app/config/services.yml

services:
    app.payum.mollie.factory:
        class: Payum\Core\Bridge\Symfony\Builder\GatewayFactoryBuilder
        arguments: [PayHelper\Payum\Mollie\MollieGatewayFactory]
        tags:
            - { name: payum.gateway_factory_builder, factory: mollie }
  1. Configure the gateway
# app/config/config.yml

payum:
    gateways:
        mollie:
            factory: mollie
            apiKey: api123456 # change this
            method: creditcard # one of directdebit, creditcard or directdebit_oneoff
  1. Gateway usage

Retrieve it from the payum service:, (*8)

$gateway = $this->get('payum')->getGeteway('mollie');

License

This library is licensed under the GNU GPLv3 license., (*9)

The Versions

08/11 2017

dev-master

9999999-dev https://sourcefabric.org

The Payum extension. It provides Mollie payment integration.

  Sources   Download

GPLv3

The Requires

 

The Development Requires

payment sepa mollie creditcard payum directdebit