samvdb/payum-paynl

The Payum extension for PayNL

1.0.0 2018-05-17 14:36 UTC

This package is not auto-updated.

Last update: 2024-04-14 02:56:24 UTC


README

Build Status Total Downloads Latest Stable Version

The Payum PayNL extension

  1. Require extension
$ composer require samvdb/payum-paynl
<?php

use Payum\Core\PayumBuilder;
use Payum\Core\GatewayFactoryInterface;

$defaultConfig = [];

$payum = (new PayumBuilder)
    ->addGatewayFactory('paynl', function(array $config, GatewayFactoryInterface $coreGatewayFactory) {
        return new \Payum\Paynl\PaynlGatewayFactory($config, $coreGatewayFactory);
    })

    ->addGateway('paynl', [
        'factory' => 'paynl',
        'sandbox' => true,
        'token' => '',
        'service_id' => ''
    ])

    ->getPayum()
;
  1. While using the gateway implement all method where you get Not implemented exception:
<?php

use Payum\Core\Request\Capture;

$paynl = $payum->getGateway('paynl');

$model = new \ArrayObject([
  // ...
]);

$paynl->execute(new Capture($model));

License

Released under the MIT License.