Skip to main content

Pay-In · Pakistan

TOPPAY TeamLess than 1 minute

Request

Pay-in API for collecting payments from customers in Pakistan (country code pk).

Request URL

Domain: Prefer unified host openapi.toppayment.com (path unchanged); legacy country domain (e.g. global-pk-openapi.toppayment.com) remains available.

EnvironmentURL
Sandboxhttps://openapi.toppayment.com/sandbox/pk/pay/prePay
Productionhttps://openapi.toppayment.com/pk/pay/prePay

Request header

FieldRequiredTypeDescription
Content-TypeMStringFixed value: application/json

Request body

FieldRequiredTypeDescription
mchNoMString(32)Merchant number
orderNumMString(64)Merchant order number
amountMNumberAmount in whole PKR (50–50000)
productDetailMString(100)Product description
methodMString(16)Pay-in method — see Pakistan guide
timestampMString(13)Timestamp (milliseconds)
customerNameMString(64)Customer name
customerEmailMString(64)Customer email
customerPhoneMString(32)Customer phone
documentNoCString(100)13-digit CNIC; required when method=EASYPAISA
downNotifyUrlMString(255)Async notification URL
redirectUrlOString(512)Redirect URL after payment (cashier)
signMStringSignature — see Signature

Request example

Content-type: application/json

Response

Response fields match other countries' pay-in APIs. See Pakistan payment guide for method meanings.