PHP code example of sol-parts / payum-liqpay

1. Go to this page and download the library: Download sol-parts/payum-liqpay 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-liqpay example snippets


use Payum\Core\GatewayFactoryInterface;
use Payum\Core\PayumBuilder;
use SolParts\PayumLiqPay\LiqPayCheckoutGatewayFactory;

$payum = (new PayumBuilder())
    ->addGatewayFactory('liqpay_checkout', static function (array $config, GatewayFactoryInterface $coreGatewayFactory) {
        return new LiqPayCheckoutGatewayFactory($config, $coreGatewayFactory);
    })
    ->addGateway('liqpay_checkout', [
        'factory' => 'liqpay_checkout',
        'public_key' => 'your-public-key',
        'private_key' => 'your-private-key',
    ])
    ->getPayum();