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.

dev-master / 1.0.x-dev 2016-03-07 18:34 UTC

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.