subdee/yii2-icepay

An extension to the Icepay API for Yii2

Installs: 109

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 3

Forks: 0

Open Issues: 0

Type:yii2-extension

1.1 2014-10-15 12:38 UTC

This package is auto-updated.

Last update: 2024-04-23 03:06:39 UTC


README

An extension to the Icepay API for Yii2

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist subdee/yii2-icepay "*"

or add

"subdee/yii2-icepay": "*"

to the require section of your composer.json file.

Usage

Once the extension is installed, initialize it as a component in your config file:

'components' => [
    ...
    'icepay' => [
        'class' => 'subdee\icepay\Icepay',
        'merchantID' => 'merchant id',
        'secretCode' => 'secretCode',
    ],
    ...
],

and then use it anywhere in your application as a component:

$methods = \Yii::$app->icepay->getPaymentMethods();