Skip to content

Latest commit

 

History

History
70 lines (56 loc) · 3.86 KB

README.en.md

File metadata and controls

70 lines (56 loc) · 3.86 KB

YooMoney Payout API PHP Client Library

Build Status Latest Stable Version Total Downloads Monthly Downloads License

Russian | English

Client to work on the Protocol for mass payouts

Opportunities

You can with this SDK:

  1. Generate a certificate for interaction with YooMoney.
  2. Transfer money to individuals for wallets in YooMoney, mobile phone numbers, Bank cards and accounts (makeDeposition).
  3. To test the possibility of transfer of remittances to wallets in YooMoney (testDeposition).
  4. Keep track of the balance of payments (balance).
  5. Receive notifications the unsuccessful status of transfers to a Bank account, card, or mobile phone (errorDepositionNotification).

Requirements

PHP 5.6.0 (or later version) with the libcurl and libxml libraries

Installation

Under console using Composer

  1. Install Composer, a package manager.
  2. In the console, run the following command:
composer require yoomoney/yookassa-payout-sdk-php

Do the following for the composer.json file of your project:

  1. Add a string "yoomoney/yookassa-payout-sdk-php": "^2.0" to the list of dependencies of your project in the composer.json file
...
    "require": {
        "php": ">=5.6.0",
        "yoomoney/yookassa-payout-sdk-php": "^2.0"
...
  1. Refresh the project's dependencies. In the console, navigate to the catalog with composer.json and run the following command:
composer update
  1. Adjust your project's code to activate automated uploading of files for our product:
require __DIR__ . '/vendor/autoload.php';

Manually

  1. Download the YooMoney API PHP Client Library archive, extract it and copy the lib catalog to the required place of your project.
  2. Adjust your project's code to activate automated uploading of files for our product:
require __DIR__ . '/lib/autoload.php'; 

Examples of using the SDK Payout API YooMoney