samvdb / payum-paynl
The Payum extension for PayNL
1.0.0
2018-05-17 14:36 UTC
Requires
- paynl/sdk: ^1.5
- payum/core: ^1.5
Requires (Dev)
- payum/core: ^1.5@dev
- php-http/guzzle6-adapter: ^1.0
- phpunit/phpunit: ^5.7
This package is not auto-updated.
Last update: 2024-11-10 05:56:38 UTC
README
The Payum PayNL extension
- 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.