Skip to content

samvdb/payum-paynl

Repository files navigation

Payum PayNL

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages