PHPackages                             dmitriymikheev/yii2-odysseq - 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. dmitriymikheev/yii2-odysseq

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

dmitriymikheev/yii2-odysseq
===========================

The toolkit of integration Odysseq service in your project for Yii2

1.1.1(3y ago)12MITPHPPHP &gt;=5.6.0

Since Jan 10Pushed 3y ago1 watchersCompare

[ Source](https://github.com/dmitriymikheev/yii2-odysseq)[ Packagist](https://packagist.org/packages/dmitriymikheev/yii2-odysseq)[ Docs](https://github.com/dmitriymikheev/yii2-odysseq)[ RSS](/packages/dmitriymikheev-yii2-odysseq/feed)WikiDiscussions master Synced yesterday

READMEChangelog (3)Dependencies (2)Versions (4)Used By (0)

Yii2 Odysseq
============

[](#yii2-odysseq)

---

Extension for working with the Odysseq service

Official API documentation
--------------------------

[](#official-api-documentation)

---

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

[](#installation)

---

The preferred way to install this extension is through [composer](https://getcomposer.org/download/).

Either run

```
composer require --prefer-dist dmitriymikheev/yii2-odysseq "*"
```

or add

```
"dmitriymikheev/yii2-odysseq": "*"

```

to the require section of your `composer.json` file.

Usage
-----

[](#usage)

---

Add the component to your application config file.

```
return [
    //some config code
    'components' => [
        'odysseq' => [
            'class' => 'dmitriymikheev\odysseq\OdysseqComponent',
            'access_token' => 'your_access_token',
            'notification_secret_key' => 'your_notification_secret_key',
        ],
    ]
    //some config code
];
```

To configure notifications about a change in the status of the bid, add the following code in your controller:

*1. Add an action:*

```
public function actions()
{
    return [
        'odysseq-callback' => [
            'class' => \dmitriymikheev\odysseq\actions\CallbackAction::class,
            'callback' => [$this, 'successCallback'],
            'component_id' => 'odysseq' //component id that was specified in the config file
        ]
    ];
}
```

*2. Add VerbFilter:*

```
public function behaviors()
{
    return [
        'verbs' => [
            'class' => VerbFilter::className(),
            'actions' => [
                'odysseq-callback' => ['post'],
            ],
        ],
    ];
}
```

*3. Disable csrf validation for callback action like this:*

```
public function beforeAction($action)
{
    if ($action->id == 'odysseq-callback') {
        $this->enableCsrfValidation = false;
    }
    return parent::beforeAction($action);
}
```

*4. Add a callback function to your controller. It will be called if the request is not fake.*

`$model` properties:

- orderId - id of the bid in the partner's system
- type - operation type (IN | OUT)
- amount - transaction amount
- status - operation status (WAITING | SENDING | SUCCESS | CANCELED)
- errorCode - error code
- errorMessage - error message

```
public function successCallback($model)
{
    //here you can change the status of the bid in your database

    //Remember that to inform the service about the successful processing of the notification, please return a json response {"status": 200}
    //Example:
    $response = Yii::$app->getResponse();
    $response->format = yii\web\Response::FORMAT_JSON;
    $response->data = ['status' => 200];
    return $response->send();
}
```

Available public methods
------------------------

[](#available-public-methods)

MethodDescriptionvalidateSignature($hash, $data)Signature validationmakeReceiveRequest($order\_id, $amount, $card\_tail = null, $client\_ip = null)Initializing a request for a deposit. makeContactRequest($order\_id, $amount, $first\_name, $middle\_name, $last\_name, $card\_number)Initiating a request for a deposit through the contact system. getPaymentStatus($order\_id)Obtaining information about the bid. makeCancelRequest($order\_id)Cancellation of the payment request. Cancellation is available for bids in the initial WAITING status. makeSendRequest($order\_id, $amount, $receiver)Initialization of sending funds to the client's card or wallet. getAccountBalance()Getting partner balance.

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 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.

###  Release Activity

Cadence

Every ~306 days

Total

3

Last Release

1337d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/42cccf58c72405d619dec54876f1e5049ebd3eff19cdcc78412b437d0809192e?d=identicon)[Dmitriy Mikheev](/maintainers/Dmitriy%20Mikheev)

---

Top Contributors

[![dmitriymikheev](https://avatars.githubusercontent.com/u/36732789?v=4)](https://github.com/dmitriymikheev "dmitriymikheev (3 commits)")

---

Tags

composerodysseqpaymentphpyii2yii2paymentmerchantyii2-extensione-commerceyii 2odysseqdmitriymikheev

### Embed Badge

![Health badge](/badges/dmitriymikheev-yii2-odysseq/health.svg)

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

###  Alternatives

[hiqdev/yii2-merchant

Yii2 extension for payment processing with Omnipay, Payum and more later

1817.5k](/packages/hiqdev-yii2-merchant)

PHPackages © 2026

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