WooCommerce · WordPress Plugin · PHP 7.4+
Overview
The SabPaisa WooCommerce plugin adds a fully managed payment gateway to your WordPress store. Once installed, customers can pay via UPI, Credit/Debit Cards, Net Banking, and Wallets — all handled by SabPaisa's secure checkout page.
No Code Required
Install, configure credentials, and go live — all from the WordPress admin panel
All Payment Methods
UPI, Cards, Net Banking, Wallets — all enabled through a single plugin
Refunds Built-In
Process full and partial refunds directly from WooCommerce order management
Prerequisites
| Requirement | Minimum Version |
|---|---|
| PHP | 7.4+ |
| WordPress | 5.8+ |
| WooCommerce | 7.0+ |
| SabPaisa Merchant Account | dashboard.sabpaisa.in |
Step 1 — Install the Plugin
sabpaisa-payment-gateway.zip
Official WordPress plugin · latest release
Go to WordPress Admin → Plugins → Add New → Upload Plugin
Upload the downloaded sabpaisa-payment-gateway.zip and click Install Now
Click Activate Plugin
Step 2 — Enter Your Credentials
Navigate to WooCommerce → Settings → Payments → SabPaisa and fill in the following fields:
| Field | Where to Find It |
|---|---|
| API Key | SabPaisa merchant dashboard |
| Merchant ID | SabPaisa merchant dashboard |
| Secret Key | SabPaisa merchant dashboard |
| Client Code | SabPaisa merchant dashboard |
| Environment | Set to Staging for testing, Production for live |
Click Save changes when done.
Step 3 — Register Your Callback & Webhook URLs
After saving, the plugin shows two URLs at the bottom of the settings page. Copy these into your SabPaisa merchant dashboard:
Callback URL
Where customers are redirected after payment completes
Webhook URL
Where SabPaisa sends real-time payment status updates
Step 4 — Test a Payment
Keep Environment set to Staging
Place a test order on your store and select SabPaisa at checkout
Complete payment using SabPaisa's test credentials
Verify the order status updates correctly in WooCommerce → Orders
Production and click Save changes to go live.Payment Flow
Here's what happens when a customer places an order with SabPaisa enabled:
Selects SabPaisa at checkout and clicks Place Order
Redirects the customer to the SabPaisa payment page
Completes payment via UPI, Card, Net Banking, or Wallet
Redirects customer back to your store (Callback URL) and sends webhook notification
Updates order status automatically based on payment result
Refunds
Full and partial refunds are supported directly from WooCommerce:
Open any paid order in WooCommerce → Orders
Click Refund
Enter the refund amount (full or partial)
Click Refund via SabPaisa
Troubleshooting
Enable Debug Log in the gateway settings to capture detailed request and error logs.
Payment not completing — customer stuck on SabPaisa page
Verify your Callback URL is correctly registered in the SabPaisa merchant dashboard. Check that your site is accessible over HTTPS.
Order status not updating after payment
Confirm the Webhook URL is registered in the SabPaisa dashboard. Check the debug log at WooCommerce → Status → Logs → sabpaisa-pg for errors.
Plugin activation fails
Ensure WooCommerce is installed and activated before activating the SabPaisa plugin. Verify PHP 7.4+ and WordPress 5.8+ requirements are met.
Refund button not visible
Refunds are only available for orders with a successful payment status. Check that the order was paid via SabPaisa.
For more common issues, see the Troubleshooting guide.
Need Help?
For plugin installation issues or payment configuration help, contact SabPaisa support:
- Your Merchant ID and Client Code
- WordPress, WooCommerce, and PHP version numbers
- Debug logs from WooCommerce → Status → Logs
Was this page helpful?