1. Go to this page and download the library: Download integrify/epoint 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/ */
integrify / epoint example snippets
use Integrify\EPoint\EPointClient;
use Integrify\EPoint\EPointConfig;
// Environment-dən
$client = new EPointClient(EPointConfig::fromEnvironment());
// Və ya açıq şəkildə — konfiqurasiya dəyişməz value object-dir, qlobal state yoxdur
$client = new EPointClient(new EPointConfig(
publicKey: 'i000000001',
privateKey: 'secret',
successRedirectUrl: 'https://shop.az/ok',
errorRedirectUrl: 'https://shop.az/fail',
));
$result->status; // xam sətir — EPoint yeni dəyər əlavə etsə də sınmır
$result->status(); // TransactionStatus|null
$result->code; // bankın xam kodu, məs. '000'
$result->codeMessage(); // 'Təsdiq edildi', tanınmayan kod üçün null
use Integrify\Http\RecordingTransport;
use Integrify\Response;
$transport = new RecordingTransport();
$client = new EPointClient($config, $transport);
$transport->queue(Response::json(['status' => 'success', 'redirect_url' => 'https://epoint.az/']));
$client->pay(100, 'AZN', 'order-1');
// Zərfi açıb payload-a baxın
$body = $transport->lastRequest()->body;
$payload = json_decode(base64_decode($body['data']), true);
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.