Independent research & analysis on payment security Search
paymentsecuritypros.com Payment Security Insights
E-commerce & Online Payments

Razorpay vs PhonePe for WooCommerce: Checkout Blocks, Refunds and Order Sync

A WooCommerce store’s payment plugin is easy to install and easy to forget. It becomes visible again on the day a theme update switches the store to block-based checkout, the host moves you to a newer PHP version, or a customer asks why their refund shows in your admin but not in their bank. If the plugin does not support your exact stack, the checkout breaks quietly or orders stop updating.

This guide compares the two official plugins Indian merchants most often shortlist: Razorpay for WooCommerce and PhonePe Payment Solutions. It focuses on compatibility with your checkout stack and what happens to an order after payment, rather than fees or a general gateway ranking. For pricing comparisons, see our Razorpay vs Paytm pricing guide.

Facts come from each plugin’s WordPress.org directory entry and changelog and Razorpay’s WooCommerce documentation, checked on 30 November 2026. Plugin versions change often, so re-check the readme before you update.

Quick answer: Both official plugins support WooCommerce’s block-based checkout according to their changelogs. Razorpay’s plugin additionally documents High-Performance Order Storage (HPOS) compatibility, refunds from inside WooCommerce and refund-related webhooks, and it supports older PHP versions (7.4+) than PhonePe’s current release (PHP 8.2+). For most Indian WooCommerce stores, Razorpay is the stronger first pilot, provided your WordPress, WooCommerce and PHP versions fall within its tested range and your refund tests pass on staging. PhonePe is a reasonable choice for stores on PHP 8.2+ whose customers pay mainly through PhonePe, once you have tested refunds and HPOS yourself.

Key takeaways

  • Identify plugins by publisher and slug: woo-razorpay by Razorpay and phonepe-payment-solutions by PhonePe. Avoid unofficial forks.
  • Check Classic Checkout, Checkout Blocks and HPOS separately. Support for one does not imply the others.
  • PhonePe’s current plugin requires PHP 8.2 or higher; stores on older PHP must stay on its v2.0.11 line, which uses older credentials.
  • Razorpay documents refunds from the WooCommerce admin. Neither plugin documents that refunds initiated in the provider dashboard flow back into WooCommerce, so test it.
  • Never fulfil an order on the browser redirect alone. Confirm the payment server-side and test pending payments before launch.

Which official plugins are you comparing?

Search results for “Razorpay WooCommerce” or “PhonePe WooCommerce” include third-party plugins. Install only the packages published by the providers themselves.

Item Razorpay for WooCommerce PhonePe Payment Solutions
Publisher Razorpay PhonePe
Slug woo-razorpay phonepe-payment-solutions
Version checked 4.8.10 3.1.1
Active installations (directory) 100,000+ 10,000+
Requires WordPress 3.9.2+ 5.4.1+
Tested up to (WordPress) 7.1.0 7.0.9
Requires PHP 7.4+ per readme header (Razorpay docs: 7.0+ with php-cURL) 8.2+ (v2.0.11 for older PHP)
WooCommerce 4.0+; tested up to 9.1.2 4.14+; tested-up-to not stated

How do Checkout Blocks, Classic Checkout and HPOS compare?

WooCommerce now offers two checkout types (the classic shortcode checkout and the block-based Checkout Block) and two order storage modes (legacy post storage and HPOS). A plugin can support one combination and not another. The table cites the changelog entry behind each affirmative claim. Where a readme is silent, that is a test item, not proof of incompatibility.

Capability Razorpay PhonePe
Classic Checkout Supported (core plugin flow) Supported (core plugin flow)
Checkout Blocks Added in 4.6.1 Block checkout rendering added in 2.0.11
Cart Blocks Added in 4.7.7 Not stated
HPOS Compatibility with WooCommerce 7.9 HPOS in 4.5.4; HPOS fix for one-click checkout in 4.7.5 Not stated; test on staging
Refund from WooCommerce admin Supported since 1.4.0 Not clearly stated; changelog mentions a refund education prompt
Webhooks or callbacks Webhooks supported; refund-related webhooks since 2.4.0 HMAC verification of incoming payloads (3.1.0); enhanced status polling (3.0.4)
Payment methods named UPI, cards, netbanking, wallets UPI and other methods via PhonePe PG

How do installation and activation differ?

Installing a plugin is not the same as being approved to accept payments. Both providers require a merchant account, and specific methods may need separate enablement.

Step Razorpay PhonePe
Account Razorpay account with KYC PhonePe PG merchant onboarding
Credentials API keys from the Dashboard; Test Mode keys first, then Live Mode keys Client ID, Client Secret (API Key) and Client Version (v3.0.1 and later); older versions use Merchant ID, Salt Key and Salt Key Index
Environment switch Replace test keys with live keys Choose Staging or Production in plugin settings
Where configured WooCommerce payment settings Settings, Checkout/Payment Gateways, PhonePe Payment Solutions
Live enablement Account activation and method approval by Razorpay Production credentials and approval from PhonePe

Rehearse on a staging copy of the live store with the same theme, plugins and checkout type. Run test-mode payments there before you touch production. Our sandbox comparison covers what test payments can and cannot prove.

Smoke-test matrix

Test Classic Checkout Checkout Blocks
Mobile UPI intent (app switch and return) Run on Android and iOS Run on Android and iOS
UPI QR or collect, where offered Run Run
Card payment with authentication Run Run
Payment from an in-app browser (for example, Instagram) Run Run
Guest checkout and logged-in checkout Run Run

The in-app browser test matters because PhonePe’s 3.0.4 release specifically added enhanced status polling for an issue in the Instagram browser, which shows how return-to-store flows can break outside a normal browser.

What happens to the WooCommerce order after payment?

The plugin’s main job after checkout is to set the order to the correct state. Trace three cases on staging for each plugin and record the result.

Case Expected WooCommerce order state What to verify
Successful payment Processing (or Completed for virtual items, per your settings) Payment ID stored on the order; amount and currency match; webhook or status check recorded
Failed payment Failed or Pending payment Customer can retry without creating a duplicate order; stock is handled as you expect
Pending payment (customer closes the app mid-payment) Pending payment until confirmed Order updates when the provider confirms; no fulfilment before that; no second charge if the customer retries

Fulfil only after the plugin has confirmed the payment server-side through a verified webhook or a status call. A thank-you page alone is not proof. Our webhook verification guide explains why signatures and duplicate handling matter, and our high-value UPI guide covers pending-after-debit cases.

Refund tests

  • Full refund from the WooCommerce admin: confirm the refund reaches the provider and the order notes record the provider’s refund ID.
  • Partial refund from the WooCommerce admin: confirm the correct amount is refunded and the order shows the remaining balance.
  • Refund initiated in the provider dashboard: check whether WooCommerce shows it. If it does not, your team must record it manually or always refund from WooCommerce.

Razorpay documents refunds from inside WooCommerce and refund-related webhooks. That is not the same as guaranteed two-way sync for every refund path, so run test 3 on your own store. For PhonePe, run all three, because admin refunds are not clearly documented in the readme we checked.

Which plugin fits your store setup?

  • Block checkout, HPOS enabled, PHP 7.4 to 8.1: start with Razorpay; PhonePe’s current line will not run on that PHP version.
  • Block checkout, HPOS enabled, PHP 8.2 or higher: both are candidates. Pilot Razorpay first for its documented HPOS and refund path, and test PhonePe’s HPOS behaviour if you want it as a second option.
  • Classic checkout on an older theme you cannot change soon: both plugins support the classic flow; choose on refund handling and your customers’ payment habits.
  • Customers who mostly pay through the PhonePe app: consider PhonePe, after completing the order and refund tests above.

Whichever you choose, keep only one active payment plugin per method during testing, so you know which plugin wrote each order note.

Pre-update checklist and rollback plan

  • Record current versions of WordPress, WooCommerce, PHP, theme and the payment plugin.
  • Read the new plugin version’s readme and changelog for requirement changes, especially PHP.
  • Copy production to staging and apply the update there first.
  • Run the smoke-test matrix for the checkout type you actually use, plus the three order cases and refund tests.
  • Keep the previous plugin version’s zip so you can reinstall it if the update fails.
  • Update production during a low-traffic window and place one small live order afterwards.
  • If checkout or order updates break, roll back the plugin, then confirm pending orders from the provider dashboard before reopening sales.

Why we recommend Razorpay as the first WooCommerce pilot

  • Documented compatibility across the stack: Checkout Blocks, Cart Blocks and HPOS each have a dated changelog entry, which makes compatibility checks traceable.
  • Order and refund management inside WooCommerce: refunds from the admin have been supported since 1.4.0, with refund webhooks since 2.4.0.
  • Broader PHP support: the readme lists PHP 7.4 or higher, so stores that cannot move to PHP 8.2 yet still get the current plugin line.
  • Published WooCommerce documentation: Razorpay maintains prerequisites, supported versions, integration steps and troubleshooting pages for the plugin.

This recommendation is conditional on your exact WordPress, WooCommerce, PHP and theme combination and on passing the refund tests above.

When PhonePe may fit better

PhonePe’s plugin suits stores that already run PHP 8.2 or higher, use block checkout and have a customer base that prefers paying through the PhonePe app. Its 3.x line uses PhonePe’s V2 Payment Gateway APIs with token-based security and payment retries, and 3.1.0 tightened HMAC verification and log redaction. Test HPOS and refunds yourself before going live, since the readme does not state them.

FAQs

1. Does the Razorpay WooCommerce plugin support Checkout Blocks?

Yes. The plugin’s changelog records Checkout Blocks support from version 4.6.1 and Cart Blocks support from 4.7.7. Test your theme on staging, because custom themes can still change how the payment step renders.

2. Does the PhonePe WooCommerce plugin work with block checkout?

Yes. PhonePe’s changelog records block checkout rendering from version 2.0.11. The current 3.x line requires PHP 8.2 or higher.

3. Which plugin supports WooCommerce HPOS?

Razorpay’s changelog records HPOS compatibility for WooCommerce 7.9 in version 4.5.4. PhonePe’s readme does not mention HPOS, which is not the same as saying it is unsupported. Test it on staging.

4. Can I refund a Razorpay or PhonePe payment from the WooCommerce admin?

Razorpay’s plugin has supported refunds from within WooCommerce since version 1.4.0, including partial refunds. PhonePe’s readme does not clearly state admin refunds, so test full and partial refunds before launch.

5. Will a refund made in the gateway dashboard update my WooCommerce order?

Do not assume it will. Neither plugin documents two-way refund sync for every path. Test a dashboard-initiated refund on staging, and if it does not appear in WooCommerce, refund from the WooCommerce admin as standard practice.

6. What should I do if a plugin update breaks checkout?

Reinstall the previous plugin version you saved, confirm any pending orders from the provider dashboard, and reopen checkout only after a test payment works. Always rehearse updates on staging first.

Author

  • Niriksha

    Niriksha covers payments regulation and compliance for Indian businesses, including RBI Payment Aggregator and PA-CB rules, e-mandates, the RBI Authentication Directions, the DPDP Act and PCI DSS 4.0.

N

Niriksha

Niriksha covers payments regulation and compliance for Indian businesses, including RBI Payment Aggregator and PA-CB rules, e-mandates, the RBI Authentication Directions, the DPDP Act and PCI DSS 4.0.

Leave a Reply

Your email address will not be published. Required fields are marked *