2017 © Pedro Peláez
 

yii2-extension yii2-tinkoff-pay

Extension for oplata.tinkoff.ru merchant API

image

chumakovanton/yii2-tinkoff-pay

Extension for oplata.tinkoff.ru merchant API

  • Wednesday, May 16, 2018
  • by ChumakovAnton
  • Repository
  • 2 Watchers
  • 2 Stars
  • 11 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 120 % Grown

The README.md

chumakovanton/yii2-tinkoff-pay

Extension for oplata.tinkoff.ru merchant API, (*1)

Installation

The preferred way to install this extension is through composer., (*2)

Either run, (*3)

php composer.phar require --prefer-dist chumakovanton/yii2-tinkoff-pay "*"

or add, (*4)

"chumakovanton/yii2-tinkoff-pay": "*"

to the require section of your composer.json file., (*5)

Usage

Config application :, (*6)

'components' => [
    //  ...
    'tinkoffPay' => [
            'class' => \chumakovanton\tinkoffPay\TinkoffPay::className(),
            'terminalKey' => 'terminalKey',
            'secretKey' => 'secretKey',
            'apiUrl' => 'https://securepay.tinkoff.ru/v2'
        ],
]

Once the extension is installed, simply use it in your code by :, (*7)


/** @var \chumakovanton\tinkoffPay\TinkoffPay $paymentService */ $paymentService = Yii::$app->tinkoffPay; $paymentRequest = $paymentService->initPay('order1', 1000); $paymentRequest->addData('user_id', 123); try { $response = $paymentRequest->send(); } catch (\chumakovanton\tinkoffPay\exceptions\HttpException $exception) { throw new \yii\web\HttpException($exception->statusCode, $exception->getMessage()); } $paymentUrl = $response->getPaymentUrl();

The Versions

16/05 2018

dev-master

9999999-dev

Extension for oplata.tinkoff.ru merchant API

  Sources   Download

MIT

The Requires

 

by Chumakov Anton

extension payment pay merchant yii2 tinkoff tinkoff.ru oplata.tinkoff.ru

16/05 2018

v0.0.5

0.0.5.0

Extension for oplata.tinkoff.ru merchant API

  Sources   Download

MIT

The Requires

 

by Chumakov Anton

extension payment pay merchant yii2 tinkoff tinkoff.ru oplata.tinkoff.ru

08/09 2017

v0.0.4

0.0.4.0

Extension for oplata.tinkoff.ru merchant API

  Sources   Download

MIT

The Requires

 

by Chumakov Anton

extension payment pay merchant yii2 tinkoff tinkoff.ru oplata.tinkoff.ru

08/09 2017

v0.0.3

0.0.3.0

Extension for oplata.tinkoff.ru merchant API

  Sources   Download

MIT

The Requires

 

by Chumakov Anton

extension payment pay merchant yii2 tinkoff tinkoff.ru oplata.tinkoff.ru

08/09 2017

v0.0.2

0.0.2.0

Extension for oplata.tinkoff.ru merchant API

  Sources   Download

MIT

The Requires

 

by Chumakov Anton

extension payment pay merchant yii2 tinkoff tinkoff.ru oplata.tinkoff.ru

08/09 2017

v0.0.1

0.0.1.0

Extension for oplata.tinkoff.ru merchant API

  Sources   Download

MIT

The Requires

 

by Chumakov Anton

extension payment pay merchant yii2 tinkoff tinkoff.ru oplata.tinkoff.ru