meraproject/vendor/yoomoney/yookassa-sdk-php
keboss-m 5c21d25d45 Initial commit: Merakomis portal, Docker stack and user-reader API.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-24 11:04:05 +03:00
..
docs Initial commit: Merakomis portal, Docker stack and user-reader API. 2026-06-24 11:04:05 +03:00
lib Initial commit: Merakomis portal, Docker stack and user-reader API. 2026-06-24 11:04:05 +03:00
tests Initial commit: Merakomis portal, Docker stack and user-reader API. 2026-06-24 11:04:05 +03:00
.gitignore Initial commit: Merakomis portal, Docker stack and user-reader API. 2026-06-24 11:04:05 +03:00
.travis.yml Initial commit: Merakomis portal, Docker stack and user-reader API. 2026-06-24 11:04:05 +03:00
CHANGELOG.md Initial commit: Merakomis portal, Docker stack and user-reader API. 2026-06-24 11:04:05 +03:00
composer.json Initial commit: Merakomis portal, Docker stack and user-reader API. 2026-06-24 11:04:05 +03:00
LICENSE.md Initial commit: Merakomis portal, Docker stack and user-reader API. 2026-06-24 11:04:05 +03:00
phpcs.xml Initial commit: Merakomis portal, Docker stack and user-reader API. 2026-06-24 11:04:05 +03:00
phpdoc.xml Initial commit: Merakomis portal, Docker stack and user-reader API. 2026-06-24 11:04:05 +03:00
phpmd.xml Initial commit: Merakomis portal, Docker stack and user-reader API. 2026-06-24 11:04:05 +03:00
phpunit.xml.dist Initial commit: Merakomis portal, Docker stack and user-reader API. 2026-06-24 11:04:05 +03:00
README.en.md Initial commit: Merakomis portal, Docker stack and user-reader API. 2026-06-24 11:04:05 +03:00
README.md Initial commit: Merakomis portal, Docker stack and user-reader API. 2026-06-24 11:04:05 +03:00

The YooKassa API PHP Client Library

Build Status Latest Stable Version Total Downloads Monthly Downloads License

Russian | English

This product is used for managing payments under The YooKassa API For usage by those who implemented YooKassa using the API method.

Requirements

PHP 5.3.2 (or later version) with the libcurl library

Installation

Under console using Composer

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

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

  1. Add a string "yoomoney/yookassa-sdk-php": "^2.4" to the list of dependencies of your project in the composer.json file
...
   "require": {
        "php": ">=5.3.2",
        "yoomoney/yookassa-sdk-php": "^2.4"
...
  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 YooKassa 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'; 

Commencing work

  1. Import required classes
use YooKassa\Client;
  1. Create a sample of a client object, then set the store's identifier and secret key (you can get them under your YooKassa's Merchant Profile). Issuing a secret key
$client = new Client();
$client->setAuth('shopId', 'secretKey');
  1. Call the required API method.

    More details in our documentation for the YooKassa API.

    More details in our documentation for the YooKassa SDK.

Examples of using the API SDK

YooKassa SDK Settings

Working with payments

Working with refunds

Working with receipts

Working with safe deals

Working with payouts

Working with personal data

Working with the list of SBP participants