PHP code example of setono / payum-quickpay
1. Go to this page and download the library: Download setono/payum-quickpay library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
setono / payum-quickpay example snippets
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();
use Payum\Core\Request\Capture;
$quickpay = $payum->getGateway('quickpay');
$model = new \ArrayObject([
// ...
]);
$quickpay->execute(new Capture($model));