حزمة PHP
عميل PHP في ملف واحد.
حمّل الملف PaymentGateway.php (بدون اعتماديات، PHP 8.0+ مع cURL) ومواصفات OpenAPI 3.0.
<?php
require 'PaymentGateway.php';
$gateway = new PaymentGateway('sk_live_xxx', 'https://pay-test.qanawat.store');
// Create an invoice
$invoice = $gateway->createInvoice(['amount' => '10', 'network' => 'bep20', 'order_id' => 'A-77']);
// Retrieve / cancel
$invoice = $gateway->getInvoice($invoice['id']);
$gateway->cancelInvoice($invoice['id']);
// Verify a webhook (throws on failure)
$event = PaymentGateway::verifyWebhook(file_get_contents('php://input'), $_SERVER, 'whsec_xxx');
تحتاج مساعدة؟ تواصل معنا
آخر تحديث: 17 نوفمبر 2026 م