2017 © Pedro Peláez
 

library yii2-yandex-money

Yii2 component for yandex modey integration in your web application

image

grigorieff/yii2-yandex-money

Yii2 component for yandex modey integration in your web application

  • Monday, June 22, 2015
  • by grigorieff
  • Repository
  • 3 Watchers
  • 3 Stars
  • 380 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 1 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Yii2 component for Yandex Money integration in your web appications

Installation

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

Either run, (*2)

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

or add, (*3)

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

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

Configuration

Add to your app config:, (*5)

    'components' => [

        .........

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

        .........

    ];

Usage

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

// get account info

$accountInfo = $ym->accountInfo();

.......

// get operation history with last 3 records
$operationHistory = $ym->->operationHistory(array("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(array(
    "request_id" => $request_payment->request_id,
));

......

License

MIT, (*6)

Requirements

This Yii2 component require [Yandex Money SDK][1], (*7)

The Versions

22/06 2015

dev-master

9999999-dev

Yii2 component for yandex modey integration in your web application

  Sources   Download

MIT

The Requires

 

by Mike Grigorieff