PHPackages                             razmiksaghoyan/omnipay-yandexmoney - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. razmiksaghoyan/omnipay-yandexmoney

ActiveLibrary

razmiksaghoyan/omnipay-yandexmoney
==================================

Yandex Money gateway for Omnipay payment processing library

0419PHP

Since Dec 28Pushed 7y agoCompare

[ Source](https://github.com/RazmikSaghoyan/yandexMoney-omnipay)[ Packagist](https://packagist.org/packages/razmiksaghoyan/omnipay-yandexmoney)[ RSS](/packages/razmiksaghoyan-omnipay-yandexmoney/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Omnipay: Yandex Money
=====================

[](#omnipay-yandex-money)

**Yandex Money driver for the Omnipay Laravel payment processing library**

[![Latest Stable Version](https://camo.githubusercontent.com/1e4f86974f2d02b7f91d05a315a0c89c4fe51d770fb3da1a480c2ce0b38287c0/68747470733a2f2f706f7365722e707567782e6f72672f72617a6d696b736167686f79616e2f6f6d6e697061792d79616e6465786d6f6e65792f76657273696f6e2e706e67)](https://packagist.org/packages/razmiksaghoyan/omnipay-yandexmoney)[![Total Downloads](https://camo.githubusercontent.com/7d37c08b572274b3b34950ade1a83150b515b1d9d4f9c2c6d3f660668cc0297b/68747470733a2f2f706f7365722e707567782e6f72672f72617a6d696b736167686f79616e2f6f6d6e697061792d79616e6465786d6f6e65792f642f746f74616c2e706e67)](https://packagist.org/packages/razmiksaghoyan/omnipay-yandexmoney)

[Omnipay](https://github.com/thephpleague/omnipay) is a framework agnostic, multi-gateway payment processing library for PHP 5.5+. This package implements Yandex Money support for Omnipay.

Installation
------------

[](#installation)

Omnipay is installed via [Composer](http://getcomposer.org/). To install, simply add it to your `composer.json` file:

```
{
    "require": {
        "razmiksaghoyan/omnipay-yandexmoney": "dev-master"
    }
}
```

And run composer to update your dependencies:

```
composer update

```

Or you can simply run

```
composer require razmiksaghoyan/omnipay-yandexmoney

```

Basic Usage
-----------

[](#basic-usage)

1. Use Omnipay gateway class:

```
    use Omnipay\Omnipay;
```

2. Initialize Yandex Money gateway and make a purchase:

```
$gateway = Omnipay::create('YandexMoney');              // Getway name
$gateway->setShopId(env('SHOP_ID'));                    // Should be your Yandex Shop Id
$gateway->setSecretKey(env('SECRET_KEY'));              // Should be your Yandex Secrect Key
$gateway->setReturnUrl(env('RETURN_URL'));              // The URL to which you will be redirected after completing the purchase
$gateway->setAmount(10);                                // Amount to charge
$gateway->setCurrency('RUB');                           // Currency
$purchaseData->setDescription('Your Description');      // Payment Description
$purchaseData->setConfirmationType('redirect');         // Redirect Only
$purchaseData->setSavePaymentMethod(true/false);        // Saving Payment Method
$purchaseData->setCapture(true/false);                  // Automatic acceptance of received payment
$purchaseData->setClientIp('Your Ip');                  // Client Ip Address

$purchase = $gateway->purchase()->send();

if ($purchase->isRedirect()) {
    // resturn RedirectUrl and OrderId, or write Your logic
    return [
        'redirectUrl' => $response->getRedirectUrl(),   // Redirection to previously generated unique URL
        'orderId'     => $response->getOrderId()        // Payment Id
    ];
} else {
    throw new Exception($purchase->getMessage());
}
```

3. Completeng Payment
    You will be redirected to YandexMoney form page. After filling and submitting credit card (Yandex Money) data YandexMoney page will webhook  (refer to also to point 2)

```
$gateway = Omnipay::create('YandexMoney');  // Getway name
$gateway->setShopId(env('SHOP_ID'));        // Should be your Yandex Shop Id
$gateway->setSecretKey(env('SECRET_KEY'));  // Should be your Yandex Secrect Key$$webService = $gateway->completePurchase([

$response = $gateway->completePurchase(
    $paymentId,                             // Payment Id
    $amount                                 // Amount to charge
);

if ($response->isSuccessful()) {
    // resturn order Id, description and payment data, or write Your logic
    return [
        'orderId' => $response->getOrderId(),
        'description' => $response->getDescription(),
        'paymentdata' => $response->getPaymentMethodData()
    ];
}
```

For testing puposes you should use only AMD currency and charge not more than 10 AMD

For general usage instructions, please see the main [Omnipay](https://github.com/thephpleague/omnipay)repository.

Support
-------

[](#support)

If you are having general issues with Omnipay, we suggest posting on [Stack Overflow](http://stackoverflow.com/). Be sure to add the [omnipay tag](http://stackoverflow.com/questions/tagged/omnipay) so it can be easily found.

If you want to keep up to date with release anouncements, discuss ideas for the project, or ask more detailed questions, there is also a [mailing list](https://groups.google.com/forum/#!forum/omnipay) which you can subscribe to.

If you believe you have found a bug, please report it using the GitHub issue tracker, or better yet, fork the library and submit a pull request.

###  Health Score

20

—

LowBetter than 17% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/013f24e94edc7195a8d9da4709df93ef5fea12c2c1c61f05b3713afe25df6546?d=identicon)[RazmikSaghoyan](/maintainers/RazmikSaghoyan)

### Embed Badge

![Health badge](/badges/razmiksaghoyan-omnipay-yandexmoney/health.svg)

```
[![Health](https://phpackages.com/badges/razmiksaghoyan-omnipay-yandexmoney/health.svg)](https://phpackages.com/packages/razmiksaghoyan-omnipay-yandexmoney)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
