PHPackages                             bookin/yii2-wallet-one - 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. bookin/yii2-wallet-one

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

bookin/yii2-wallet-one
======================

Component for WalletOne service

1.0.0(9y ago)83887[1 issues](https://github.com/bookin/yii2-wallet-one/issues)[1 PRs](https://github.com/bookin/yii2-wallet-one/pulls)BSD-3-ClausePHPPHP &gt;=5.4.0

Since Aug 15Pushed 6y ago2 watchersCompare

[ Source](https://github.com/bookin/yii2-wallet-one)[ Packagist](https://packagist.org/packages/bookin/yii2-wallet-one)[ RSS](/packages/bookin-yii2-wallet-one/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

Yii2 component for [WalletOne](https://www.walletone.com/)
==========================================================

[](#yii2-component-for-walletone)

[![Total Downloads](https://camo.githubusercontent.com/14a72a94c19f293ffffe7aeb6a517361280e8e1dc0c2bdd11b8b31a25b44287e/68747470733a2f2f706f7365722e707567782e6f72672f626f6f6b696e2f796969322d77616c6c65742d6f6e652f646f776e6c6f616473)](https://packagist.org/packages/bookin/yii2-wallet-one)[![Latest Unstable Version](https://camo.githubusercontent.com/711f69fdaf55cb6b50598bd265f27d95430bba579f07fe3253748abad1028160/68747470733a2f2f706f7365722e707567782e6f72672f626f6f6b696e2f796969322d77616c6c65742d6f6e652f762f756e737461626c65)](https://packagist.org/packages/bookin/yii2-wallet-one)[![License](https://camo.githubusercontent.com/a5b53bf84672a7a0e747c9ab09c32c60728b13b38e141a0121aaaec4646aef11/68747470733a2f2f706f7365722e707567782e6f72672f626f6f6b696e2f796969322d77616c6c65742d6f6e652f6c6963656e7365)](https://packagist.org/packages/bookin/yii2-wallet-one)

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

[](#installation)

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

To install, either run

```
$ php composer.phar require bookin/yii2-wallet-one "@dev"

```

or add

```
"bookin/yii2-wallet-one": "@dev"

```

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

Usage
-----

[](#usage)

### Configure component:

[](#configure-component)

```
'walletone'=>[
    'class'=>'bookin\walletone\WalletOne',
    'secretKey'=>'....',
    'signatureMethod'=>'sha1',
    'buttonLabel'=>'....',
    'walletOptions'=>[
        'WMI_MERCHANT_ID'=>'...',
        'WMI_CURRENCY_ID'=>'...',
        'WMI_SUCCESS_URL'=>['site/payment-success'],
        'WMI_FAIL_URL'=>['site/payment-fail'],
    ]
]
```

`secretKey` - it your secret key, you can find it on setting integration page your account

`walletOptions` - it [parameters](https://www.walletone.com/merchant/documentation/#step2) for generating a payment form, you can set permanent data

`signatureMethod` - EDS creation method, this parameter must be the same as your selected method on the setting integration page your account (default - sha1)

`buttonLabel` - label for WalletOneButton

If you don't use encryption method, you need set `signatureMethod` and `secretKey` to NULL

### Example show form

[](#example-show-form)

You can get fields (add some options), and create form:

```
$action = Yii::$app->walletone->apiUrl;
$formData = Yii::$app->walletone->getFields([
    'WMI_PAYMENT_AMOUNT'=>'1.00',
    'WMI_CURRENCY_ID'=>WalletOne::CurrencyID('UAH'),
    'WMI_DESCRIPTION'=>'Top up the account - '.Yii::$app->user->identity->username,
    'WMI_PAYMENT_NO'=>Yii::$app->user->id
]);
echo Html::beginForm($action);
foreach($formData as $key => $value){
    echo Html::hiddenInput($key, $value);
}
echo Html::submitButton('Pay', ['class'=>'btn btn-info']);
echo Html::endForm();
```

Or use simple form (button)

```
echo WalletOneButton::widget([
    'walletOptions'=>[
        'WMI_PAYMENT_AMOUNT'=>'1.00',
        'WMI_CURRENCY_ID'=>WalletOne::CurrencyID('UAH'),
        'WMI_DESCRIPTION'=>'Top up the account - '.Yii::$app->user->identity->username,
        'WMI_PAYMENT_NO'=>Yii::$app->user->id
    ]
]);
```

### Example success action

[](#example-success-action)

```
$post = Yii::$app->request->post();

/** @var WalletOne $walletone */
$walletone = Yii::$app->walletone;

try{
    if($walletone->checkPayment($post)){
        //... save info about payment
    }
}catch (ErrorException $c){
    return 'WMI_RESULT=RETRY&WMI_DESCRIPTION='.$c->getMessage();
}
return 'WMI_RESULT=OK';
```

### Problems

[](#problems)

If you enabled `enableCsrfValidation` for your application you should disable it manually (`Yii::app()->request->enableCsrfValidation = false;`) before initializing form to have the correct token.

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 88.9% 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

Unknown

Total

1

Last Release

3557d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/e42ca3ca9dd9b6a27b809ff12add877756d868499929dbf3ec15bc6564bdd0a0?d=identicon)[bookin](/maintainers/bookin)

---

Top Contributors

[![bookin](https://avatars.githubusercontent.com/u/537882?v=4)](https://github.com/bookin "bookin (16 commits)")[![denostr](https://avatars.githubusercontent.com/u/967489?v=4)](https://github.com/denostr "denostr (1 commits)")[![godzie44](https://avatars.githubusercontent.com/u/17674942?v=4)](https://github.com/godzie44 "godzie44 (1 commits)")

### Embed Badge

![Health badge](/badges/bookin-yii2-wallet-one/health.svg)

```
[![Health](https://phpackages.com/badges/bookin-yii2-wallet-one/health.svg)](https://phpackages.com/packages/bookin-yii2-wallet-one)
```

###  Alternatives

[guanguans/yii-pay

适配于 Yii 的 alipay 和 wechat 的支付扩展包

515.5k](/packages/guanguans-yii-pay)[hscstudio/yii2-cart

Yii2 extension that adds shopping cart functions

242.1k](/packages/hscstudio-yii2-cart)

PHPackages © 2026

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