Skip to main content

Tokenization Initiate JazzCash

The tokenization flow for JazzCash differs from Easypaisa. For JazzCash, a hosted page (handled by the payment channel) opens first, and the customer enters their details there to proceed with the transaction.

The following parameters are passed in the URL to open the hosted page:

ParameterRequiredTypeLengthDescription
MerchantIdYesString7A unique ID provided by Simpaisa to represent each merchant
AmountYesStringThe amount to charge in PKR
OrderIdYesStringGenerated by the merchant to track the transaction
MobileNoYesString10Customer's mobile number (MSISDN) without country code prefix
transactionTypeYesStringFixed value 8 to indicate the tokenization flow
ReturnUrlYesStringThe URL where JazzCash redirects the user after authentication on the hosted page
SubscriptionPeriodNoStringRecurrence interval for auto-billing
platformNoStringRoutes charge and refund IPNs to separate webhook endpoints. Set the value to 3.

Hosted Page URL

EnvironmentBase URL
Sandboxhttps://sandbox.simpaisa.com
Productionhttps://jazzcash.simpaisa.com

With platform parameter

{{protocol}}://{{url}}/jc/registrationfull?Amount=X&MobileNo=X&ReturnUrl=X&OrderId=X&MerchantId=X&transactionType=8&platform=3

Without platform parameter

{{protocol}}://{{url}}/jc/registrationfull?Amount=X&MobileNo=X&ReturnUrl=X&OrderId=X&MerchantId=X&transactionType=8
info

The URL above opens a hosted page that must be handled properly so the user can input their payment details.

Once the payment details are entered, the user receives an OTP that must be entered on a second screen to approve the transaction.

Example (sandbox)

With platform parameter

# Open in browser — replace placeholders
https://sandbox.simpaisa.com/jc/registrationfull?Amount=1&MobileNo=3XXXXXXXXX&ReturnUrl=https://merchant.example/callback&OrderId=test-jc&MerchantId=2000XXX&transactionType=8&platform=3

Without platform parameter

# Open in browser — replace placeholders
https://sandbox.simpaisa.com/jc/registrationfull?Amount=1&MobileNo=3XXXXXXXXX&ReturnUrl=https://merchant.example/callback&OrderId=test-jc&MerchantId=2000XXX&transactionType=8

Example (production)

With platform parameter

# Open in browser — replace placeholders
https://jazzcash.simpaisa.com/jc/registrationfull?Amount=1&MobileNo=3XXXXXXXXX&ReturnUrl=https://merchant.example/callback&OrderId=test-jc&MerchantId=2000XXX&transactionType=8&platform=3

Without platform parameter

# Open in browser — replace placeholders
https://jazzcash.simpaisa.com/jc/registrationfull?Amount=1&MobileNo=3XXXXXXXXX&ReturnUrl=https://merchant.example/callback&OrderId=test-jc&MerchantId=2000XXX&transactionType=8