2017 © Pedro Peláez
 

library yii2-yandex-money

Yii2 component for yandex money integration in your web application

image

betsuno/yii2-yandex-money

Yii2 component for yandex money integration in your web application

  • Tuesday, February 13, 2018
  • by BetsuNo
  • Repository
  • 1 Watchers
  • 0 Stars
  • 20 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Yii2 component for Yandex Money integration in your web applications

This repo is fork of grigorieff/yii2-yandex-money was made because there was no stable release., (*1)

Installation

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

Either run, (*3)

php composer.phar require --prefer-dist betsuno/yii2-yandex-money "*"

or add, (*4)

"betsuno/yii2-yandex-money": "*"

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

Configuration

Add to your app config:, (*6)

    'components' => [

        .........

        'ym' => [
            'class'         => 'betsuno\yii2yandexMoney\YMComponent',
            'client_id'     => '......',
            'code'          => '......',
            'redirect_uri'  => '......',
            'client_secret' => '......'
        ],

        .........

    ];

Usage

$ym = Yii::$app->ym->api;

// get account info

$accountInfo = $ym->accountInfo();

.......

// get operation history with last 3 records
$operationHistory = $ym->operationHistory(['records' => 3]);

......

// make request payment
$requestPayment = $ym->requestPayment([
    'pattern_id' => 'p2p',
    'to'         => $money_wallet,
    'amount_due' => $amount_due,
    'comment'    => $comment,
    'message'    => $message,
    'label'      => $label,
]);

......

// call process payment to finish payment
$processPayment = $ym->processPayment([
    'request_id' => $request_payment->request_id,
]);

......

License

MIT, (*7)

Requirements

This Yii2 component requires: * Yii 2 framework * [Yandex Money SDK][2], (*8)

The Versions

13/02 2018

dev-master

9999999-dev

Yii2 component for yandex money integration in your web application

  Sources   Download

MIT

The Requires

 

by Avatar BetsuNo
by Mike Grigorieff

13/02 2018

0.1

0.1.0.0

Yii2 component for yandex money integration in your web application

  Sources   Download

MIT

The Requires

 

by Avatar BetsuNo
by Mike Grigorieff