Welcome To PAY FAST BD Docs

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.

API Documentation

1. Create Payment Request

Create Payment (POST)
https://payment.payfastbd.xyz/api/payment/create
FieldDescriptionRequired
cus_nameCustomer Full NameYes
cus_emailCustomer Email AddressYes
amountPayable AmountYes
webhook_urlCallback URLYes
success_urlSuccess Redirect URLYes
PHP Integration Example:
<?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; }?>

2. Verify Payment Request

Verify Payment (POST)
https://payment.payfastbd.xyz/api/payment/verify
<?php$data = ["transaction_id" => "TRX_ID_FROM_CALLBACK"];// Send via POST with API-KEY header to verify.?>

Modules & Plugins

WordPress

Easily integrate with WooCommerce or WP sites.

Download Plugin
WHMCS

Automate billing for your hosting business.

Download Module
SMM Panel

Payment module for SMM scripts.

Download Module
Sketchware SWB

Project file for Android app development.

Download SWB

Android Sms Redar App