emilmassey / payum-tpay
The Payum extension. It provides Tpay payment integration.
Installs: 1 158
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Requires
- php: >7.1
- payum/core: ^1.5
- tpay-com/tpay-php: ^2.3
Requires (Dev)
- payum/core: ^1.5
- php-http/guzzle6-adapter: ^1.0
- phpunit/phpunit: ^9.5
- vimeo/psalm: ^4.7
This package is auto-updated.
Last update: 2025-03-17 00:40:50 UTC
README
The Payum extension. It provides Tpay payment integration.
Installation
Just run composer require emilmassey/payum-tpay "^1.1"
config.php
<?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() ;
prepare.php
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.
Resources
License
Extension is released under the MIT License.