← Back to Blog

How to Add Payment Gateway to WordPress Website Free: Complete Guide (2026) | WovLab

By WovLab Team | February 24, 2026 | 4 min read

WordPress WooCommerce Payment Gateway   February 17, 2026 · 20 min read

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

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

  1. Go to WordPress Admin → Plugins → Add New
  2. Search for "PhonePe Payment Solutions" (by PhonePe)
  3. Click Install NowActivate

Configuration

  1. Go to WooCommerce → Settings → Payments
  2. Find "PhonePe Payment Solutions" and click Manage
  3. Enable the payment gateway
  4. Enter your Merchant ID, Salt Key, and Salt Index
  5. Set Environment to "Production"
  6. Configure redirect URLs (automatically set to your WooCommerce order pages)
  7. Click Save Changes

Testing

Before going live:

  1. Switch environment to "UAT" (test mode)
  2. Place a test order using PhonePe's test credentials
  3. Verify the order status updates correctly in WooCommerce
  4. 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)

  1. Plugins → Add New → Search "WooCommerce Stripe Payment Gateway"
  2. Install and activate
  3. WooCommerce → Settings → Payments → Stripe
  4. Toggle "Enable Stripe" ON
  5. Enter your Stripe Publishable Key and Secret Key from your Stripe Dashboard
  6. Enable "Stripe Checkout" or "Payment Element" (recommended — supports UPI, wallets, cards)
  7. Set up webhook: Copy your Webhook URL and add it in Stripe Dashboard → Developers → Webhooks
  8. Paste the Webhook Signing Secret back into WooCommerce settings
  9. Save and test with Stripe's test card 4242 4242 4242 4242

Key Stripe Settings for WordPress

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)

  1. Plugins → Add New → Search "WooCommerce PayPal Payments"
  2. Install and activate
  3. WooCommerce → Settings → Payments → PayPal
  4. Click Connect to PayPal — this opens an OAuth flow in your PayPal account
  5. Grant WooCommerce permission to your PayPal Business account
  6. Enable Smart Payment Buttons (PayPal, Venmo, Pay Later)

Advantages of This Setup

Option 4: Razorpay for WordPress

Installation

  1. Plugins → Add New → Search "Razorpay for WooCommerce"
  2. Install and activate (official plugin from Razorpay)
  3. WooCommerce → Settings → Payments → Razorpay
  4. Enter your Razorpay Key ID and Key Secret
  5. Configure payment options (UPI, Cards, Netbanking, EMI, Wallets)
  6. Enable "Magic Checkout" for higher conversion rates

Comparing Gateway Performance on WooCommerce

GatewayIndian UPIInternational CardsEase of SetupMDR
PhonePe✅ Excellent✅ GoodEasy0% UPI
Stripe✅ Good✅ ExcellentModerate2.9%+30¢
PayPal❌ No UPI✅ ExcellentEasiest (OAuth)3.49%+fixed
Razorpay✅ Excellent✅ GoodEasy2%+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:

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:

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.

Hosting Recommendation: Get reliable web hosting from Hostinger — trusted for business websites

Ready to Get Started?

Let WovLab handle it for you — zero hassle, expert execution.

💬 Chat on WhatsApp