1. Go to this page and download the library: Download inpayuz/inpay-php 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/ */
use InPay\Exception\ApiException; // inPAY biznes-xatosi (error_code bilan)
use InPay\Exception\SignatureException;// webhook imzosi mos emas
use InPay\Exception\InPayException; // bazaviy tur (hammasini ushlaydi)
try {
$inpay->create([...]);
} catch (ApiException $e) {
echo $e->getErrorCode(); // masalan "MERCHANT_INACTIVE", "AMOUNT_TOO_LOW"
}
bash
composer
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.