No Description

ptenchik0 63e691becc cleanup 2 years ago
controllers 9852a8f16a Init 2 years ago
models 9852a8f16a Init 2 years ago
views 9852a8f16a Init 2 years ago
Bootstrap.php 9852a8f16a Init 2 years ago
LiqPayWidget.php 9852a8f16a Init 2 years ago
Module.php 9852a8f16a Init 2 years ago
README.md 9852a8f16a Init 2 years ago
composer.json 9852a8f16a Init 2 years ago

README.md

ReactLogic LiqPay Module

ReactLogic LiqPay Module Desc

Installation

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.

Usage

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