PHP code example of i-avatar777 / yii2-api-paykeeper
1. Go to this page and download the library: Download i-avatar777/yii2-api-paykeeper library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
i-avatar777 / yii2-api-paykeeper example snippets
$provider = new \iAvatar777\components\PayKeeperApi\PayKeeperApi([
'url' => '',
'user' => '',
'password' => '',
'secret' => '',
]);
$data = $provider->createPayment(['pay_amount' => 100]);
$url = $data['invoice_url'];