The Payum extension. It provides Tpay payment integration.
Just run composer require emilmassey/payum-tpay "^1.1"
<?php
//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()
;
Here you have to modify the gatewayName
value. Set it to tpay
. The rest remain the same as described in basic get it started documentation.
Extension is released under the MIT License.