Skip to content

subdee/yii2-icepay

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Icepay Extension for Yii2

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();

About

An extension to the Icepay API for Yii2

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages