buyplan-estonia / payum-buyplan
Payum Gateway for BuyPlan Payments.
1.0.0
2020-11-29 11:02 UTC
Requires
- php: ^7.2
- ext-json: *
- ext-openssl: *
- buyplan-estonia/buyplan: ^1.0
- payum/core: ^1.5
- psr/log: ^1.0.1
Requires (Dev)
- payum/core: ^1.5
- php-http/guzzle6-adapter: ^1.0
This package is not auto-updated.
Last update: 2025-04-01 04:40:46 UTC
README
Installation
composer require buyplan-estonia/payum-buyplan
Basic Usage
<?php
use Payum\Core\PayumBuilder;
use Payum\Core\GatewayFactoryInterface;
$defaultConfig = [];
$payum = (new PayumBuilder)
->addGatewayFactory('buyplan', function(array $config, GatewayFactoryInterface $coreGatewayFactory) {
return new \BuyPlanEstonia\PayumBuyPlan\BuyPlanGatewayFactory($config, $coreGatewayFactory);
})
->addGateway('buyplan', [
'factory' => 'buyplan',
'testing' => true,
])
->getPayum()
;
Currently implemented Action
s:
StatusAction
ConvertPaymentAction
CaptureAction
<?php
use Payum\Core\Request\Capture;
$BuyPlan = $payum->getGateway('buyplan');
$model = new \ArrayObject([
// ...
]);
$BuyPlan->execute(new Capture($model));
Resources
License
This software is released under the MIT License.