Hitesh Mistry

1 Apr 20265 min read

Introduction

If your Razorpay payment popup is not opening on your WooCommerce website, it can directly impact your business. Customers are unable to complete payments, leading to lost sales and poor user experience.

This is a common issue faced by many WordPress developers and store owners, especially after plugin updates or configuration changes.

In this guide, I will walk you through the exact steps to identify and fix this issue based on real-world experience.

Razorpay popup not opening issue

Common Symptoms

If you are facing this issue, you may notice:

  • Payment popup does not appear after clicking “Place Order”
  • Checkout button reloads the page instead of opening payment
  • No error message displayed
  • Console showing JavaScript errors

These symptoms indicate that something is blocking the Razorpay script.

Why Razorpay Popup Fails

There are multiple reasons why this issue occurs:

  • JavaScript conflicts with other plugins
  • Security headers blocking scripts
  • Website not running on HTTPS
  • Outdated Razorpay plugin
  • Theme compatibility issues

Understanding the root cause is important before applying fixes.

WooCommerce checkout error screen

Step 1: Check Browser Console

Open developer tools (F12) and go to the Console tab.

Look for:

  • JavaScript errors
  • Blocked scripts
  • Failed network requests

This is the fastest way to identify the issue.

Step 2: Check Plugin Conflicts

Disable all plugins except WooCommerce and Razorpay.

Then:

  • Test checkout again
  • Enable plugins one by one

This helps identify conflicting plugins.

Step 3: Ensure HTTPS is Enabled

Razorpay requires a secure connection.

  • Make sure your website uses HTTPS
  • Check SSL certificate validity

Without HTTPS, the payment popup will not work.

Step 4: Update Razorpay Plugin

Using an outdated plugin can cause compatibility issues.

  • Update Razorpay plugin
  • Update WooCommerce
  • Check compatibility notes
WooCommerce plugin update

Facing payment issues on your website?

I help businesses fix critical website issues and ensure smooth payment experiences.

Step 5: Check Security Headers (Very Important)

If you are using strict security headers, they may block Razorpay scripts.

This is a common issue when implementing Content Security Policy (CSP).

Solution:

  • Allow Razorpay domains in CSP
  • Test after updating headers

You can refer to my Security Headers Guide to fix this properly.

Step 6: Check Theme Compatibility

Sometimes themes override WooCommerce scripts.

  • Switch to default theme (like Storefront)
  • Test payment flow

If it works, the issue is in your theme.

Real Case Study

In one project, Razorpay popup was not opening due to strict CSP rules blocking Razorpay scripts.

After updating CSP:

  • Payment popup started working
  • Checkout flow improved
  • Sales resumed normally

This issue is more common than you think.

Common Mistakes to Avoid

  • Ignoring console errors
  • Not testing after updates
  • Using outdated plugins
  • Blocking scripts with security headers

Advanced Troubleshooting Tips

  • Check network tab for blocked requests
  • Disable caching temporarily
  • Test in incognito mode
  • Check server logs

Also check my WordPress Speed Optimization Guide to improve overall performance.

Conclusion

Fixing Razorpay popup issues requires a systematic approach. By checking console errors, resolving conflicts, and configuring security headers properly, you can restore your payment flow.

Always test your checkout process regularly to avoid revenue loss.

Share this article:

FacebookFacebook
LinkedInLinkedIn
XX
WhatsAppWhatsApp
ThreadsThreads
EmailEmail

Hitesh Mistry

UI/UX Designer, Full-Stack Developer and Digital Experience Consultant with over 10 years of professional experience in helping businesses succeed online.

Are payment gateway issues costing you sales?

I will fix your payment gateway issues to ensure smooth checkouts, reduce drop-offs, and maximize your sales.