Last updated: 2026-03-10
PAY FAST BD is a simple and Secure payment automation tool designed to use your personal account as a payment gateway.
https://payment.payfastbd.xyz/api/payment/create | Field | Description | Required |
|---|---|---|
| cus_name | Customer Full Name | Yes |
| cus_email | Customer Email Address | Yes |
| amount | Payable Amount | Yes |
| webhook_url | Callback URL | Yes |
| success_url | Success Redirect URL | Yes |
<?php$api_key = "YOUR_API_KEY";$data = [ "cus_name" => "Md Nerob", "cus_email" => "nerob@example.com", "amount" => "100.00", "webhook_url" => "https://yoursite.com/callback.php", "success_url" => "https://yoursite.com/success.php", "cancel_url" => "https://yoursite.com/cancel.php"];$curl = curl_init("https://payment.payfastbd.xyz/api/payment/create");curl_setopt_array($curl, [ CURLOPT_POST => true, CURLOPT_POSTFIELDS => json_encode($data), CURLOPT_HTTPHEADER => ["API-KEY: $api_key", "Content-Type: application/json"], CURLOPT_RETURNTRANSFER => true]);$response = json_decode(curl_exec($curl), true);if($response['status'] == "true") { header("Location: " . $response['payment_url']); exit; }?> https://payment.payfastbd.xyz/api/payment/verify <?php$data = ["transaction_id" => "TRX_ID_FROM_CALLBACK"];// Send via POST with API-KEY header to verify.?>