PHP code example of emilmassey / payum-tpay
1. Go to this page and download the library: Download emilmassey/payum-tpay 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/ */
emilmassey / payum-tpay example snippets
//config.php
use Payum\Core\PayumBuilder;
use Payum\Core\Payum;
/** @var Payum $payum */
$payum = (new PayumBuilder())
->addDefaultStorages()
->addGateway('gatewayName', [
'factory' => 'tpay',
'merchant_id' => 'change it',
'secret' => 'change it',
'api_key' => 'change it',
'api_password' => 'change it',
'sandbox' => true,
])
->getPayum()
;