setono / payum-quickpay
QuickPay gateway for Payum
Installs: 45 266
Dependents: 1
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 2
Open Issues: 2
Requires
- php: >=7.4
- ext-hash: *
- ext-json: *
- payum/core: ^1.6
- php-http/message-factory: ^1.0
- psr/http-message: ^1.0
Requires (Dev)
- guzzlehttp/guzzle: ^6.3
- php-http/guzzle6-adapter: ^1.0 || ^2.0
- phpunit/phpunit: ^7.5.20
- roave/security-advisories: dev-latest
- setono/code-quality-pack: ^2.1.3
README
This component enables the use of QuickPay with Payum.
Installation
composer require setono/payum-quickpay
Configuration
<?php use Payum\Core\PayumBuilder; use Payum\Core\GatewayFactoryInterface; $defaultConfig = []; $payum = (new PayumBuilder) ->addGatewayFactory('quickpay', function(array $config, GatewayFactoryInterface $coreGatewayFactory) { return new \Setono\Payum\QuickPay\QuickPayGatewayFactory($config, $coreGatewayFactory); }) ->addGateway('quickpay', [ 'factory' => 'quickpay' ]) ->getPayum();
Usage
<?php use Payum\Core\Request\Capture; $quickpay = $payum->getGateway('quickpay'); $model = new \ArrayObject([ // ... ]); $quickpay->execute(new Capture($model));