Skip to main content

8. Payment Request Form

To initiate a transaction using SADAD Web Checkout 2.1, the merchant must submit an HTML form from their server to the SADAD checkout endpoint.

This form contains the order details and a server-generated signature to ensure request authenticity.


Important Integration Rules

caution
  • The payment form must be generated and submitted server-side
  • The signature must be generated using your Secret Key
  • Do not expose Secret Keys or signature logic on the frontend
  • Always use the POST method

Checkout Endpoint

Use the following endpoint for both Test and Live transactions:

https://sadadqa.com/webpurchase

The environment (Sandbox or Live) is determined by the Secret Key used to generate the signature.


Mandatory Form Parameters

The following parameters are required for all Web Checkout requests:

ParameterDescription
merchant_idSADAD Merchant ID (MID)
ORDER_IDUnique order reference generated by the merchant
TXN_AMOUNTTransaction amount
CALLBACK_URLMerchant callback URL
WEBSITEMerchant website identifier
emailCustomer email address
MOBILE_NOCustomer mobile number
txnDateTransaction date and time
signatureSHA256 signature generated server-side

Optional Parameters

These parameters are optional but recommended where applicable:

ParameterDescription
productdetailProduct or service details
customer_nameCustomer full name
languageCheckout language preference

Optional parameters must not be included in the signature unless explicitly documented.


Sample HTML Payment Form

<form action="https://sadadqa.com/webpurchase" method="post" target="_blank">
<input type="hidden" name="merchant_id" value="7015085" />
<input type="hidden" name="ORDER_ID" value="ORD-20251216-001" />
<input type="hidden" name="TXN_AMOUNT" value="150.00" />
<input type="hidden" name="CALLBACK_URL" value="https://yoursite.com/callback" />
<input type="hidden" name="WEBSITE" value="yoursite.com" />
<input type="hidden" name="email" value="[email protected]" />
<input type="hidden" name="MOBILE_NO" value="97412345678" />
<input type="hidden" name="txnDate" value="2025-12-16 12:30:00" />
<input type="hidden" name="signature" value="GENERATED_SIGNATURE" />
<button type="submit">Pay Now</button>
</form>

Product Details Structure (Optional)

productdetail[0][order_id]
productdetail[0][amount]
productdetail[0][quantity]
<input type="hidden" name="productdetail[0][order_id]" value="ITEM-001" />
<input type="hidden" name="productdetail[0][amount]" value="150.00" />
<input type="hidden" name="productdetail[0][quantity]" value="1" />

Product details are not included in the signature calculation.


Validation & Formatting Rules

note
  • ORDER_ID must be unique per transaction
  • TXN_AMOUNT must be numeric
  • CALLBACK_URL must be publicly accessible
  • Date/time formats must remain consistent

What Happens After Form Submission?

  1. Customer is redirected to SADAD checkout
  2. Customer completes payment
  3. SADAD redirects to CALLBACK_URL
  4. SADAD sends webhook notification

Need Help?

Contact [email protected] with:

  • Merchant ID
  • Order ID
  • Environment