Payum PayNL
, (*1)
The Payum PayNL extension, (*2)
- 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()
;
- 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., (*3)