1. Go to this page and download the library: Download samdevxuz/algorix-pay 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/ */
samdevxuz / algorix-pay example snippets
use AlgorixPay\Events\PaymentReceived;
use Illuminate\Support\Facades\Event;
Event::listen(function (PaymentReceived $event): void {
$payment = $event->payment;
$payment->amountTiyin; // int — 1 so'm = 100 tiyin
$payment->currency; // 'UZS' | 'RUB' | 'USD' | 'EUR'
$payment->transactionId; // ?string — bot-provided receipt/transaction id
$payment->senderMasked; // ?string — '8600****1234' (when present)
$payment->receiverMasked; // ?string — '9860****5678' (your card, when present)
$payment->receivedAt; // ?string — ISO 8601 UTC, from Telegram message.date
$payment->rawText; // string — original bot message
$event->bankMessageId; // 'clickuz:12345' — UNIQUE per bot message
$event->bankSource; // 'clickuz'
});