Connect your website, ecommerce store, SMM panel, or bot to this payment gateway
Creates a hosted payment invoice and returns the checkout URL.
Content-Type: application/json X-API-KEY: zn_live_your_secret_api_key
{
"amount": 250.00,
"customer_id": "user_102",
"customer_name": "Rahim Ahmed",
"redirect_url": "https://yourwebsite.com/payment-success"
}
{
"success": true,
"session_id": "INV9823ABCD",
"amount": 250,
"currency": "BDT",
"checkout_url": "https://pay.frazix360.com/checkout?invoice_id=INV9823ABCD",
"expires_at": "2026-09-09 03:20:00"
}
Check whether an invoice is PENDING or COMPLETED.
{
"success": true,
"session_id": "INV9823ABCD",
"status": "COMPLETED",
"amount": 250,
"trx_id": "BL72390192",
"method": "bKash"
}
যখনই কোনো কাস্টমার বিকাশ/নগদে টাকা পাঠাবে, আমাদের গেটওয়ে আপনার মার্চেন্ট পোর্টালে সেট করা Webhook URL-এ নিচের ডাটা পাঠাবে:
{
"event": "payment_completed",
"invoice_id": "INV9823ABCD",
"amount": 250.00,
"trx_id": "BL72390192",
"method": "bKash",
"status": "COMPLETED"
}
<?php
// 1. Create Invoice
$payload = [
"amount" => 500,
"customer_id" => "ORDER_102",
"customer_name" => "Rahim Ahmed",
"redirect_url" => "https://mysite.com/thankyou"
];
$ch = curl_init("https://pay.frazix360.com/api/create_payment.php");
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($payload));
curl_setopt($ch, CURLOPT_HTTPHEADER, [
'Content-Type: application/json',
'X-API-KEY: zn_live_your_api_key_here'
]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = json_decode(curl_exec($ch), true);
curl_close($ch);
if (!empty($response['success'])) {
// Redirect customer to checkout page
header("Location: " . $response['checkout_url']);
exit;
}
?>