PHPackages                             yarcode/yii2-adv-cash - 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. yarcode/yii2-adv-cash

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

yarcode/yii2-adv-cash
=====================

AdvCash component for Yii2 framework

1.0.2(8y ago)5722↓100%8MITPHPPHP &gt;=5.4.0

Since Mar 4Pushed 8y ago3 watchersCompare

[ Source](https://github.com/yarcode/yii2-adv-cash)[ Packagist](https://packagist.org/packages/yarcode/yii2-adv-cash)[ Docs](http://yiidreamteam.com/yii2/adv-cash)[ RSS](/packages/yarcode-yii2-adv-cash/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (4)Dependencies (1)Versions (6)Used By (0)

AdvCash component for Yii2
==========================

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

Payment gateway and api client for [AdvCash](http://yiidreamteam.com/link/adv-cash) 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 yarcode/yii2-adv-cash
```

or add

```
"yarcode/yii2-adv-cash": "*"
```

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

Usage
-----

[](#usage)

### Component configuration

[](#component-configuration)

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

```
'advCash' => [
    'class' => '\yarcode\advcash\Merchant'
    'accountEmail' => null,
    'merchantName' => null,
    'merchantPassword' => null,
    'walletNumber' => null,
    'sciCurrency' => \yarcode\advcash\Merchant::CURRENCY_USD,
    'sciCheckSign' => true,
    'sciDefaultPs' => null,
    'successUrl' => null,
    'failureUrl' => null,
    'resultUrl' => null,
    'successUrlMethod' => null,
    'failureUrlMethod' => null,
    'resultUrlMethod' => null
]
```

### Redirecting to the payment system

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

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

```
