PHP code example of sol-parts / payum-hutko
1. Go to this page and download the library: Download sol-parts/payum-hutko 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/ */
sol-parts / payum-hutko example snippets
use Payum\Core\GatewayFactoryInterface;
use Payum\Core\PayumBuilder;
use SolParts\PayumHutko\HutkoGatewayFactory;
$payum = (new PayumBuilder())
->addGatewayFactory('hutko', static function (array $config, GatewayFactoryInterface $coreGatewayFactory) {
return new HutkoGatewayFactory($config, $coreGatewayFactory);
})
->addGateway('hutko', [
'factory' => 'hutko',
'merchant_id' => 'your-merchant-id',
'password' => 'your-merchant-password',
])
->getPayum();