setono/payum-quickpay

QuickPay gateway for Payum

v1.4.0 2022-06-01 07:29 UTC

This package is auto-updated.

Last update: 2024-12-10 14:45:53 UTC


README

Latest Version on Packagist Software License Build Status Code Coverage

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));