SwichPay now ships an official WooCommerce payment gateway plugin. Install it on your WordPress store, enter your merchant API keys, and your customers can pay with JazzCash, EasyPaisa, and Raast QR — without you writing a single line of integration code.
What the plugin does
When a customer checks out with SwichPay, the plugin creates a payment on SwichPay and sends the customer to the secure hosted checkout page. The customer pays with their mobile wallet or by scanning the Raast QR code. SwichPay then notifies your store automatically (IPN), and the WooCommerce order is marked complete. If the customer returns before the notification arrives, the plugin re-checks the payment status on the thank-you page, so paid orders are never left pending.
Requirements
- WordPress with WooCommerce installed and activated.
- A store currency of PKR — settlement is always in Pakistani Rupees.
- A SwichPay merchant account. You will need your public key and secret key from the merchant panel (sidebar: Api Key).
- Your store domain must be your approved merchant website domain — SwichPay only accepts payments initiated from the domain on your merchant account.
Installation
- Download the plugin ZIP from the API documentation page.
- In WordPress admin, go to Plugins → Add New → Upload Plugin, choose the ZIP file, and click Install Now, then Activate.
- Go to WooCommerce → Settings → Payments and open SwichPay.
- Tick Enable, paste your Public Key and Secret Key, and save. The API Base URL is pre-filled with https://swichpay.com — leave it as it is for live payments.
- Optionally pick a light or dark checkout theme and turn on debug logging while you test.
How the checkout works
- The customer picks SwichPay at checkout and places the order.
- The plugin creates a payment on SwichPay and redirects the customer to the hosted checkout page.
- The customer pays with JazzCash, EasyPaisa, or Raast QR.
- SwichPay sends an IPN to your store. The plugin verifies both signatures, checks the amount matches the order total, and marks the order complete — exactly once, even if the notification arrives twice.
- On the thank-you page, any order still pending is re-checked against SwichPay, so a delayed notification cannot leave a paid order stuck.
You do not need to configure any webhook URL yourself: the plugin registers its own IPN endpoint automatically.
Testing before going live
Point the plugin’s API Base URL setting at the test environment and use your test-environment merchant keys. Run a small checkout end to end — place the order, complete the payment, and confirm the WooCommerce order flips to complete. When you are satisfied, switch the Base URL back to https://swichpay.com with your live keys.
Good to know
- PKR only. The plugin only activates on stores whose currency is PKR.
- No automatic refunds. SwichPay has no refund API, so refunds are handled manually — WooCommerce can record them, but the money movement itself is manual.
- Customer email limit. The gateway accepts customer emails up to 30 characters. Longer billing emails are rejected at initiation with the gateway’s error shown to the customer.
- One full payment per order. Subscriptions, partial payments, and pre-authorisation are not supported — every payment is a single full-amount charge.
Full technical details — including the API endpoints, the IPN signature scheme, and the status API — are in the API documentation. If you run a WordPress site and want the shorter overview first, read Accept Payments on WordPress with SwichPay.
Start accepting payments with SwichPay
Open a merchant account, connect your website with one API and get notified the moment a customer pays.
