dev-master
9999999-devYii2 component for yandex modey integration in your web application
MIT
The Requires
by Mike Grigorieff
Yii2 component for yandex modey integration in your web application
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)
Add to your app config:, (*5)
'components' => [ ......... 'ym' => [ 'class' => 'grigorieff\ym\YMComponent', 'client_id' => '......', 'code' => '......', 'redirect_uri' => '......', 'client_secret' => '......' ], ......... ];
$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, )); ......
MIT, (*6)
This Yii2 component require [Yandex Money SDK][1], (*7)
Yii2 component for yandex modey integration in your web application
MIT