Skip to main content

Hosted Page

Simpaisa-hosted checkout link that shows enabled payment channels and redirects back to your site.

Use the Hosted Page when you want Simpaisa to handle the checkout UI. You generate a link and send the customer to it. Simpaisa collects payment details and processes the transaction.

  • Show all channels enabled for your merchant, or restrict to one method using the optional operator parameter.
  • When the flow completes, the customer is redirected to your redirectUrl.
  • Use the Inquiry API to confirm final status and display the outcome.

Build a GET URL with the query parameters below.

ParameterRequiredTypeLengthDescription
merchantIdYesInt07Unique merchant ID
keyYesStringN/ASimpaisa security key for authenticating link generation
amountConditionalInt/FloatN/AAmount in PKR — required if no productId
productIdConditionalIntN/AConfigured plan ID — required if no amount
redirectUrlYesStringN/AURL where the user is redirected after payment
orderIdYesStringN/AYour unique order reference (correlation / idempotency)
operatorNoInt06Restrict to one operator (e.g. Easypaisa, Jazzcash)

Sample URL​

https://{{url}}/checkout?merchantId=xxxxxxxx&key=xxxxxxx&orderId=xxxxxxx&amount=xxxxxx&redirectUrl=xxxxxxxxxxxxxxxxxxxx&operator=xxxxx
info

The operator parameter is optional. When omitted, all enabled payment channels are shown. When provided, only that channel is available.


Environments​

EnvironmentBase URL
Sandboxhttps://stg-widgetapi.simpaisa.com
Productionhttps://widgetapi.simpaisa.com

Integration Flow​

  1. Build the checkout URL with merchantId, key, orderId, amount or productId, and redirectUrl.
  2. Redirect the customer's browser to the checkout URL.
  3. Customer completes payment on the Simpaisa-hosted page.
  4. Customer lands on your redirectUrl.
  5. Call Inquire with merchantId and orderId to show the final result.

APIs At A Glance​

ActionMethodPath
Generate checkout linkGET/checkout?...
Inquire payment statusPOST/inquire

For a no-code payment link option, see E-Invoice / Link to Pay.