paradigm / payum-paytrail
The Payum extension for Paytrail payment gateway
This package's canonical repository appears to be gone and the package has been frozen as a result.
Installs: 989
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 1
Open Issues: 0
Type:project
Requires
- payum/core: ^1.2.3
This package is not auto-updated.
Last update: 2023-02-24 10:38:33 UTC
README
Installation
The preferred way to install the library is using composer. Run composer require to add dependencies to composer.json:
php composer.phar require paradigm/payum-paytrail
config.php
We have to only add the gateway factory. All the rest remain the same:
<?php //config.php use Payum\Core\PayumBuilder; use Payum\Core\Payum; /** @var Payum $payum */ $payum = (new PayumBuilder()) ->addDefaultStorages() ->addGateway('gatewayName', [ 'factory' => 'paytrail' 'merchantId' => 'EDIT IT', 'merchantSecret' => 'EDIT IT' ]) ->getPayum() ;
prepare.php
Here you have to modify a gatewayName
value. Set it to paytrail
. The rest remain the same as described basic get it started documentation.
Licence
MIT Licence.