f1r3starter/yii2-paymentgate-alphabank

Extension for payment through the payment gateway of the Alfabank

dev-master 2017-09-13 15:06 UTC

This package is auto-updated.

Last update: 2024-12-19 06:48:33 UTC


README

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist veksoftware/yii2-paymentgate-alphabank "*"

or add

"veksoftware/yii2-paymentgate-alphabank": "*"

to the require section of your composer.json file.

Usage

Once the extension is installed, simply use it in your code by :

// config/main.php
<?php
    'components' => [
        'paymentgate_alphabank' => [
            'class' => '\paymentgate_alphabank\components\PaymentComponent',
            'userName' => 'my_login_at_service',
            'password' => 'my password at service',
            'gatewayUrl' => 'https://www.test.com/rest/',
            'returnUrl' => '',
        ]
    ]

Then you can use it in your code :

<?php

?>