Start a project

Integrating JazzCash and Easypaisa: what your developer needs

JazzCash and Easypaisa are the two most used mobile wallets in Pakistan, and both offer online payment APIs for merchants. Integrating either one takes a merchant account, sandbox credentials and a server that verifies every payment notification before it marks an order paid.

What you need before development starts

  • A merchant account with the provider, opened in your business's name, with the documents they ask for.
  • Sandbox (test) credentials: a merchant ID, a password or key, and a secret used to sign requests.
  • A live website on HTTPS with a return URL and a server callback URL the provider can reach.
  • Clear refund, delivery and contact pages, which providers usually check before approving live access.

How the checkout works

  • Your server creates a transaction with the order amount and reference, signs it with your secret, and sends the customer to the provider (or triggers a payment prompt on their phone).
  • The customer approves the payment in the wallet.
  • The provider returns the customer to your site and notifies your server with the result.
  • Your server recalculates the signature, checks the amount and reference, and only then marks the order paid.

The mistakes that lose orders

  • Trusting the return page. A closed browser or a weak connection means the customer never lands on it; the server notification and a status inquiry are what count.
  • Skipping the hash check, which lets anyone fake a "paid" message.
  • No status inquiry for pending payments, so a payment approved late stays unpaid in your system.
  • Order references reused after a failed attempt, which the provider may reject as duplicates.

Wallets, cards or both?

Many Pakistani shoppers prefer a wallet; others want to pay by card. Offering both, plus cash on delivery for e-commerce, usually converts best. Whatever the mix, post each payment and its fee to your books so the settlement matches.

Questions people ask

How do I integrate JazzCash into my website?
Open a JazzCash merchant account, get sandbox credentials, build the checkout on your server with a signed request, verify the signed response and callback before marking orders paid, test in sandbox, then apply for live credentials.
Can I accept both JazzCash and Easypaisa on one site?
Yes. Each needs its own merchant account and integration, and the checkout lets the customer choose.
Do JazzCash and Easypaisa support recurring subscriptions?
Check each provider's current merchant offering. Where automatic recurring charges are not available, a common pattern is a reminder with a fresh payment link at each renewal.