PHPackages                             den11100/yii2-wallet-one-2019 - 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. [API Development](/categories/api)
4. /
5. den11100/yii2-wallet-one-2019

ActiveYii2-extension[API Development](/categories/api)

den11100/yii2-wallet-one-2019
=============================

Component for WalletOne service

1.0.1(6y ago)06BSD-3-ClausePHPPHP &gt;=5.6.0

Since Aug 8Pushed 6y ago1 watchersCompare

[ Source](https://github.com/den11100/yii2-wallet-one-2019)[ Packagist](https://packagist.org/packages/den11100/yii2-wallet-one-2019)[ RSS](/packages/den11100-yii2-wallet-one-2019/feed)WikiDiscussions master Synced yesterday

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

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

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

[![Total Downloads](https://camo.githubusercontent.com/47cb130fac0cac6c86e82a4bffe6ce6417ecc1be73d369779f9e2a4c86c08264/68747470733a2f2f706f7365722e707567782e6f72672f64656e31313130302f796969322d77616c6c65742d6f6e652d323031392f646f776e6c6f616473)](https://packagist.org/packages/den11100/yii2-wallet-one-2019)[![Latest Unstable Version](https://camo.githubusercontent.com/0e045be3dfd7307329bc0e7970af01caeb5ee9f0dc0e413c12d6b0b9c1618c06/68747470733a2f2f706f7365722e707567782e6f72672f64656e31313130302f796969322d77616c6c65742d6f6e652d323031392f762f756e737461626c65)](https://packagist.org/packages/den11100/yii2-wallet-one-2019)[![License](https://camo.githubusercontent.com/cd57d11150103c8dd4d70332e443f681362c7a2c2420f2bce295fc097d835973/68747470733a2f2f706f7365722e707567782e6f72672f64656e31313130302f796969322d77616c6c65742d6f6e652d323031392f6c6963656e7365)](https://packagist.org/packages/den11100/yii2-wallet-one-2019)

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

[](#installation)

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

To install, either run

```
$ php composer.phar require den11100/yii2-wallet-one-2019 "^1.0.0"

```

or add

```
"den11100/yii2-wallet-one-2019": "^1.0.0"

```

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

Usage
-----

[](#usage)

### Configure component:

[](#configure-component)

```
'walletone'=>[
    'class'=>'den11100\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';
```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity55

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 ~0 days

Total

2

Last Release

2470d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5780686d7cef47e14b06dff6ca02aeb8ae207bf54cebb8450900cf8be94dd693?d=identicon)[den11100](/maintainers/den11100)

---

Top Contributors

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

### Embed Badge

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

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

###  Alternatives

[dotzero/yii2-amocrm

Расширение для Yii Framework 2 реализующее клиент для работы с API amoCRM

1639.7k](/packages/dotzero-yii2-amocrm)[conquer/services

Yii2 soap wsdl web services

1632.5k](/packages/conquer-services)[skeeks/yii2-google-api

Component for work with google api based on google/apiclient

1243.1k1](/packages/skeeks-yii2-google-api)[apexwire/yii2-restclient

Tools to use API as ActiveRecord for Yii2

143.5k](/packages/apexwire-yii2-restclient)

PHPackages © 2026

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