Official SBP-Compliant Sub-Merchant Architecture

Pakistan’s Premier White-Label Payment Gateway

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.

100%
White-Label Checkout
T+1
Automated Settlements
000
PayFast Verified Code
Backend Integrated Payment Rails
💳 Visa / Mastercard 🇵🇰 PayPak 🟢 Easypaisa Wallet 🔴 JazzCash Wallet ⚡ 1Link / Raast
hdpay.pk/checkout?session_id=...
LIVE PREVIEW
Merchant Store
TechHaven Electronics
HD
Total Payable Amount
PKR 4,500.00
256-Bit SSL
Credit / Debit Card (PayFast 3DS) Instant OTP
Mobile Wallets & Raast Direct Zero Fee
Experience Complete Checkout Flow →
Processor Gateway: PayFast Pakistan (APPS IPG)
Sub-Merchant Descriptor: HDPAY*TECHHAVEN*#901
Domain Security: Whitelisted Domains Only
Regulatory Compliance & Sub-Merchant Architecture

How HDPay Connects Compliantly with PayFast Pakistan

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.

01

Transparent Sub-Merchant Descriptors

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.

02

Real Customer Identity for Bank OTP

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.

03

Origin Domain Whitelisting

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.

Platform Features

Engineered for Scale, Security, and Seamless Integration

Hosted White-Label Checkout

Your custom checkout page operates under your domain with your logo, merchant store details, order summaries, and SSL encryption.

Dynamic API Keys & Secrets

Every merchant receives unique Client IDs, Client Secrets, and Webhook Signing Keys with environment separation (Sandbox vs Live).

Dynamic Webhooks & Callbacks

Instant HMAC-SHA256 signed webhooks notify merchant servers the millisecond payment is confirmed by PayFast.

Configurable Fee Engine

Configure customized percentage and fixed platform processing fees globally or per merchant to maximize profitability.

Dual Dashboards

Dedicated Merchant Dashboard for API management and settlements, plus an Admin Master Dashboard for comprehensive platform oversight.

Strict Audit & Anti-Laundering

Every single PayFast API token, payload, and response is recorded in an immutable audit ledger accessible only to platform administrators.

Transparent Pricing

Interactive Revenue & Fee Calculator

See how much you retain with HDPay’s standard 1.50% + PKR 10 processing fee.

PKR 500,000
PKR 10,000 PKR 2,500,000 PKR 5,000,000+
HDPay Platform Fee (1.5%)
PKR 7,500
Avg Merchant Orders
100 Orders
Net Merchant Payout
PKR 491,500
Developer First

Integrate HDPay with Just 5 Lines of Code

Use our modern JSON REST API to initiate checkout sessions, query real-time transaction verification, and listen to HMAC-SHA256 signed webhooks.

Standardized JSON payloads
Domain-level request authorization
WHMCS, WooCommerce & Shopify modular readiness
cURL PHP (cURL) Node.js
POST /api/v1/checkout/create.php
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"
  }'