Skip to main content
Accept EasyPaisa payments from customers in Pakistan with Thunes as the payment service provider (PSP). The customer selects EasyPaisa, confirms the payment on the Thunes payment page and returns to your site.

Supported workflows

Before you begin

Complete these steps before you send your first EasyPaisa payment through Thunes:
  1. Set up a Thunes integration in your workspace. Contact your Payrails account team if Thunes isn’t listed in your Payrails Portal yet.
  2. Ask Thunes to enable EasyPaisa on your Thunes merchant account, with a payment page whose ID is easypaisa. Payrails opens the Thunes payment page with that ID.
  3. In the Payrails Portal, go to Settings → Integrations, open your Thunes integration, select Easypaisa under Payment methods, and save.
  4. Add EasyPaisa as a payment option in your workflow.

Request fields for Thunes

Send these fields in the authorize request, in addition to the standard authorize fields. Payrails checks Required fields and returns an error when one is missing. Fields required by the PSP pass the Payrails checks but the PSP can decline the payment without them.

Authorize an EasyPaisa payment

Call authorize a payment with easypaisa as the paymentMethodCode. The response includes the redirect to the Thunes payment page.
Authorize request
After the customer confirms the payment, Thunes returns them to your success or error URL. Confirm the result through webhook notifications or the execution status before you fulfill the order.

How Thunes handles EasyPaisa

  • Thunes notifies Payrails of the final result. When Thunes reports the payment as charged, Payrails records the authorization and the capture together.
  • Refunds and cancels aren’t available for EasyPaisa payments through Thunes.
Last modified on October 2, 2026