ptenchik0 63e691becc cleanup | 2 years ago | |
---|---|---|
controllers | 2 years ago | |
models | 2 years ago | |
views | 2 years ago | |
Bootstrap.php | 2 years ago | |
LiqPayWidget.php | 2 years ago | |
Module.php | 2 years ago | |
README.md | 2 years ago | |
composer.json | 2 years ago |
ReactLogic LiqPay Module Desc
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist reactlogic/yii2-reactlogic-liqpay "*"
or add
"reactlogic/yii2-reactlogic-liqpay": "*"
to the require section of your composer.json
file.
Once the extension is installed, add to config :
'modules' => [
'liqpay' => [
'class' => 'reactlogic\liqpay\Module',
'public_key' => 'sandbox_i59645978812',
'private_key' => 'sandbox_g80VP8wcnWOhpogR6Jjn0LvE6KtIgY6BFnF2ZsRl',
'action' => 'paydonate',
'amount' => null,
'currency' => 'USD',
'description' => 'Help People (SOS) WAR!',
'language' => 'en',
],
...
]
Then simply use it in your code by :
```php <?= \reactlogic\liqpay\LiqPayWidget::widget(); ?>