PHPackages                             sdelfi/yii2-free-kassa - 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. sdelfi/yii2-free-kassa

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

sdelfi/yii2-free-kassa
======================

FreeKassa component for Yii2

1.3.0(4y ago)052MITPHPPHP &gt;=5.4.0

Since Feb 18Pushed 4y ago1 watchersCompare

[ Source](https://github.com/sdelfi/yii2-free-kassa)[ Packagist](https://packagist.org/packages/sdelfi/yii2-free-kassa)[ Docs](http://yiidreamteam.com/yii2/free-kassa)[ RSS](/packages/sdelfi-yii2-free-kassa/feed)WikiDiscussions master Synced 2d ago

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

WARNING:
========

[](#warning)

Only partial migration to the new API has been carried out

Free Kassa component for Yii2
=============================

[](#free-kassa-component-for-yii2)

Payment gateway and api client for [Free Kassa](http://www.freekassa.ru) service.

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

[](#installation)

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

Either run

```
php composer.phar require --prefer-dist sdelfi/yii2-free-kassa "~1.0"

```

or add

```
"sdelfi/yii2-free-kassa": "~0.1"

```

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

Usage
-----

[](#usage)

### Component configuration

[](#component-configuration)

Configure `freeKassa` component in the `components` section of your application.

```
'freeKassa' => [
    'class' => '\sdelfi\freekassa\Merchant',
    'merchantId' => 'YOUR_MERCHANT_ID',
    'merchantFormSecret' => 'SECRET_1',
    'checkDataSecret' => 'SECRET_2',
    'defaultCurrency' => 'RUB',
    'defaultPayMethod' => 'DEFAULT_PAYMETHOD_ID',
    'defaultLanguage' => 'ru' // or 'en'
],

```

### Redirecting to the payment system

[](#redirecting-to-the-payment-system)

To redirect user to PerfectMoney site you need to create the page with RedirectForm widget. User will redirected right after page load.

```

```

### Gateway controller

[](#gateway-controller)

You will need to create controller that will handle result requests from PerfectMoney service. Sample controller code:

```
