How to Add Payment Gateway to WordPress Website Free: Complete Guide (2026) | WovLab
Over 43% of all websites run on WordPress. If yours is one of them, you need a payment gateway that integrates smoothly with WooCommerce, gives you the lowest transaction fees possible, and doesn't require a developer to set up.
This guide covers four free payment gateway options for WordPress — PhonePe Business, Stripe, PayPal, and Razorpay — with step-by-step installation instructions for each, and a recommendation based on your specific situation.
WovLab Service: We integrate any payment gateway into your WordPress/WooCommerce site for free. Register PhonePe through our link and get free integration included.
Prerequisites
- WordPress 6.0+ installed
- WooCommerce plugin installed and activated
- SSL certificate installed (mandatory — most payment gateways require HTTPS)
- Merchant account with your chosen payment gateway
Option 1: PhonePe Business for WordPress (Best for India)
PhonePe Business is the best choice for WordPress stores targeting Indian customers. The official plugin integrates UPI, cards, and net banking seamlessly into WooCommerce checkout.
Installation
- Go to WordPress Admin → Plugins → Add New
- Search for "PhonePe Payment Solutions" (by PhonePe)
- Click Install Now → Activate
Configuration
- Go to WooCommerce → Settings → Payments
- Find "PhonePe Payment Solutions" and click Manage
- Enable the payment gateway
- Enter your Merchant ID, Salt Key, and Salt Index
- Set Environment to "Production"
- Configure redirect URLs (automatically set to your WooCommerce order pages)
- Click Save Changes
Testing
Before going live:
- Switch environment to "UAT" (test mode)
- Place a test order using PhonePe's test credentials
- Verify the order status updates correctly in WooCommerce
- Switch back to "Production" when satisfied
Option 2: Stripe for WordPress
Stripe is the most powerful payment plugin for WordPress/WooCommerce, with official support from both Stripe and WooCommerce teams.
Option A: WooCommerce Stripe Plugin (Official)
- Plugins → Add New → Search "WooCommerce Stripe Payment Gateway"
- Install and activate
- WooCommerce → Settings → Payments → Stripe
- Toggle "Enable Stripe" ON
- Enter your Stripe Publishable Key and Secret Key from your Stripe Dashboard
- Enable "Stripe Checkout" or "Payment Element" (recommended — supports UPI, wallets, cards)
- Set up webhook: Copy your Webhook URL and add it in Stripe Dashboard → Developers → Webhooks
- Paste the Webhook Signing Secret back into WooCommerce settings
- Save and test with Stripe's test card
4242 4242 4242 4242
Key Stripe Settings for WordPress
- Payment Methods: Enable "Cards", "Bank Redirects" (for India: UPI via Stripe), and "Buy Now Pay Later"
- Save Cards: Enable to let returning customers pay faster
- Statement Descriptor: Set to your business name so customers recognize the charge
- Capture Method: "Automatic" for most businesses (charges immediately)
Option 3: PayPal for WordPress
PayPal has two options for WooCommerce: the legacy standard checkout and the newer "WooCommerce PayPal Payments" plugin (recommended).
WooCommerce PayPal Payments (Recommended)
- Plugins → Add New → Search "WooCommerce PayPal Payments"
- Install and activate
- WooCommerce → Settings → Payments → PayPal
- Click Connect to PayPal — this opens an OAuth flow in your PayPal account
- Grant WooCommerce permission to your PayPal Business account
- Enable Smart Payment Buttons (PayPal, Venmo, Pay Later)
Advantages of This Setup
- No API keys to manually enter — OAuth-based setup
- PayPal Smart Buttons adapt to show the most relevant options (PayPal, Venmo, Pay Later)
- Supports guest checkout (customers don't need a PayPal account)
- PayPal's fraud protection reduces chargebacks
Option 4: Razorpay for WordPress
Installation
- Plugins → Add New → Search "Razorpay for WooCommerce"
- Install and activate (official plugin from Razorpay)
- WooCommerce → Settings → Payments → Razorpay
- Enter your Razorpay Key ID and Key Secret
- Configure payment options (UPI, Cards, Netbanking, EMI, Wallets)
- Enable "Magic Checkout" for higher conversion rates
Comparing Gateway Performance on WooCommerce
| Gateway | Indian UPI | International Cards | Ease of Setup | MDR |
|---|---|---|---|---|
| PhonePe | ✅ Excellent | ✅ Good | Easy | 0% UPI |
| Stripe | ✅ Good | ✅ Excellent | Moderate | 2.9%+30¢ |
| PayPal | ❌ No UPI | ✅ Excellent | Easiest (OAuth) | 3.49%+fixed |
| Razorpay | ✅ Excellent | ✅ Good | Easy | 2%+GST |
Best Configuration: Multi-Gateway Setup
For maximum conversion, use multiple gateways simultaneously. WooCommerce supports this natively — each payment method shows as a separate option at checkout:
- PhonePe — Default for Indian customers (UPI, cards, netbanking)
- Stripe — For international customers and premium card transactions
- PayPal — For customers who trust PayPal more (common with older demographics)
You can use a plugin like "WooCommerce Conditional Payments" to automatically show the appropriate gateway based on the customer's billing country.
Common WordPress Payment Issues
Order Status Stuck on "Pending"
This usually means the payment webhook/IPN (Instant Payment Notification) is not reaching your server. Check:
- Your site URL is publicly accessible (not behind a firewall or localhost)
- The webhook URL in the gateway dashboard matches your WooCommerce webhook URL
- No security plugin (Wordfence, etc.) is blocking the gateway's IP
SSL / HTTPS Errors
All payment gateways require HTTPS. If your checkout shows "Not Secure," install an SSL certificate (free via Let's Encrypt through Hostinger or Cloudflare).
Test Payments Working, Production Failing
Common causes: still using test API keys in production settings, gateway account not fully verified, or missing bank account verification for settlements.