PHPackages                             akhur0286/yii2-paykeeper - 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. [Payment Processing](/categories/payments)
4. /
5. akhur0286/yii2-paykeeper

ActiveYii2-extension[Payment Processing](/categories/payments)

akhur0286/yii2-paykeeper
========================

Библиотека для приема платежей через Сбербанк.

01.5k1PHP

Since Sep 13Pushed 2y ago1 watchersCompare

[ Source](https://github.com/akhur0286/paykeeper)[ Packagist](https://packagist.org/packages/akhur0286/yii2-paykeeper)[ RSS](/packages/akhur0286-yii2-paykeeper/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Библиотека для приема платежей через интернет для Paykeeper.
============================================================

[](#библиотека-для-приема-платежей-через-интернет-для-paykeeper)

Библиотека для приема платежей через интернет для Paykeeper.

Установка с помощью Composer
----------------------------

[](#установка-с-помощью-composer)

```
php composer.phar require akhur0286/yii2-paykeeper "*"

```

или добавьте в composer.json

```
"akhur0286/yii2-paykeeper": "*"

```

Подключение компонента
----------------------

[](#подключение-компонента)

```
[
    'components' => [
        'paykeeper' => [
            'class' => 'akhur0286\paykeeper\Merchant',
            'merchantLogin' => '',
            'merchantPassword' => '',
            'serverUrl' => '',
            'orderModel' => '', //модель таблицы заказов
        ],
        //..
    ],
];
```

Пример работы библиотеки
------------------------

[](#пример-работы-библиотеки)

```
class PaymentController extends \yii\web\Controller
{
    /**
     * @inheritdoc
     */
    public function actions()
    {
        return [
            'success-payment' => [
                'class' => '\akhur0286\paykeeper\actions\BaseAction',
                'callback' => [$this, 'successCallback'],
            ],
            'error-payment' => [
                'class' => '\akhur0286\paykeeper\actions\BaseAction',
                'callback' => [$this, 'failCallback'],
            ],
        ];
    }

    public function successCallback($orderId)
    {
        /* @var $model PaykeeperInvoice */
        $model = PaykeeperInvoice::findOne(['invoice_id' => $orderId]);
        if (is_null($model)) {
            throw new NotFoundHttpException();
        }

        $merchant = \Yii::$app->get('paykeeper');
        $result = $merchant->checkStatus($orderId);
        //Проверяем статус оплаты если всё хорошо обновим инвойс и редерекним
        if (isset($result['OrderStatus']) && ($result['OrderStatus'] != $merchant->successStatus)) {
            //обработка при успешной оплате $model->related_id номер заказа
            echo 'ok';
        } else {
            $this->redirect($merchant->failUrl.'?orderId=' . $orderId);
        }
    }

    public function failCallback($orderId)
    {
        /* @var $model PaykeeperInvoice */
        $model = PaykeeperInvoice::findOne(['invoice_id' => $orderId]);
        if (is_null($model)) {
            throw new NotFoundHttpException();
        }
        //вывод страницы ошибки $model->related_id номер заказа

        echo 'error payment';
    }
}

```

###  Health Score

17

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity20

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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/d115aa03fe7a53f0e2d39725340ee49b7961b435db3276b553f983b99c527208?d=identicon)[akhur0286](/maintainers/akhur0286)

---

Top Contributors

[![akhur0286](https://avatars.githubusercontent.com/u/10026691?v=4)](https://github.com/akhur0286 "akhur0286 (1 commits)")

### Embed Badge

![Health badge](/badges/akhur0286-yii2-paykeeper/health.svg)

```
[![Health](https://phpackages.com/badges/akhur0286-yii2-paykeeper/health.svg)](https://phpackages.com/packages/akhur0286-yii2-paykeeper)
```

###  Alternatives

[omnipay/paypal

PayPal gateway for Omnipay payment processing library

3256.8M45](/packages/omnipay-paypal)[horstoeko/zugferd

A library for creating and reading european electronic invoices

3943.8M13](/packages/horstoeko-zugferd)[adyen/module-payment

Official Magento2 Plugin to connect to Payment Service Provider Adyen.

1643.0M6](/packages/adyen-module-payment)[tbbc/money-bundle

This is a Symfony bundle that integrates moneyphp/money library (Fowler pattern): https://github.com/moneyphp/money.

1961.8M](/packages/tbbc-money-bundle)[2checkout/2checkout-php

2Checkout PHP Library

83708.6k2](/packages/2checkout-2checkout-php)[smhg/sepa-qr-data

Generate QR code data for SEPA payments

59682.3k5](/packages/smhg-sepa-qr-data)

PHPackages © 2026

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