Scale your own branded payment gateway platform. Onboard third-party merchants, issue secure API keys, host custom checkouts under your domain, and process payments compliantly via PayFast Pakistan (APPS IPG) backend.
Under State Bank of Pakistan (SBP) rules and card network regulations, payment aggregation must be transparent, verifiable, and free of false or masked data. Here is exactly how HDPay achieves this.
PayFast officially receives the compliant TXNDESC descriptor in the format:
HDPAY*[SubMerchantName]*[OrderID].
This ensures bank statements and 3D Secure screens correctly identify both the aggregator and the sub-merchant.
Pakistani card-issuing banks, Easypaisa, and JazzCash require genuine customer mobile numbers to deliver 2FA OTP codes via SMS. HDPay passes authentic customer mobile numbers so payments never fail verification.
To prevent unauthorized transaction aggregation, HDPay enforces domain whitelisting. Only verified and admin-approved websites belonging to the merchant are permitted to initiate payment sessions.
Your custom checkout page operates under your domain with your logo, merchant store details, order summaries, and SSL encryption.
Every merchant receives unique Client IDs, Client Secrets, and Webhook Signing Keys with environment separation (Sandbox vs Live).
Instant HMAC-SHA256 signed webhooks notify merchant servers the millisecond payment is confirmed by PayFast.
Configure customized percentage and fixed platform processing fees globally or per merchant to maximize profitability.
Dedicated Merchant Dashboard for API management and settlements, plus an Admin Master Dashboard for comprehensive platform oversight.
Every single PayFast API token, payload, and response is recorded in an immutable audit ledger accessible only to platform administrators.
See how much you retain with HDPay’s standard 1.50% + PKR 10 processing fee.
Use our modern JSON REST API to initiate checkout sessions, query real-time transaction verification, and listen to HMAC-SHA256 signed webhooks.
curl -X POST "https://hdpay.codestar.pk/api/v1/checkout/create.php" \ -H "Content-Type: application/json" \ -H "X-HDPAY-CLIENT-ID: hd_live_pub_techhaven_a9f8e7d6" \ -H "X-HDPAY-CLIENT-SECRET: hd_live_sec_c3b2a198475f6e8d0c1b..." \ -d '{ "order_id": "INV-10921", "amount": 4500.00, "customer_name": "Asad Khan", "customer_email": "asad@gmail.com", "customer_phone": "03001234567", "return_url": "https://mystore.pk/order/complete", "webhook_url": "https://mystore.pk/api/hdpay-ipn" }'