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
Requires
- marlon-be/icepay-api: ~2.0.3
- yiisoft/yii2: 2.0.0
Requires (Dev)
- codeception/codeception: 2.0.*
This package is auto-updated.
Last update: 2024-12-23 04:36:16 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();