aditya zen - Web & Mobile App Developer

Razorpay Payment Successful but WooCommerce Order Still Pending

me_adityazen
me_adityazen•November 12, 2026•9 min read
Razorpay Payment Successful but WooCommerce Order Still Pending

AI Overview

A successful customer payment and an updated WooCommerce order are separate events. First verify the exact Razorpay payment and order IDs, amount, currency, and captured status; then inspect WooCommerce order notes, gateway logs, and webhook delivery. Reconcile only confirmed payments to the right order, test the repaired notification path, and add monitoring so paid orders cannot remain invisible.

5:01
Summarize this article
ChatGPTClaudePerplexityGeminiGrokCopilot

A customer sends a UPI payment screenshot and asks why there is no order confirmation. Razorpay appears to have received the money, while WooCommerce still says Pending payment. Shipping the parcel immediately could be risky; asking the customer to pay again could be worse. The first job is to establish what happened to this specific transaction.

This guide is for Indian store owners and developers using the Razorpay WooCommerce integration. It explains how to separate a genuine paid order from an incomplete checkout, recover safely, and prevent the same mismatch from hiding the next order. Menu names and available logs can vary by plugin version, so follow the evidence in your store rather than treating a screenshot or one status label as final proof.

What “Pending payment” actually tells you

WooCommerce describes Pending payment as an order received without confirmed payment. Processing means payment has been received and a physical order is awaiting fulfilment; Completed means fulfilment is finished. On hold can mean confirmation is still needed, including for some delayed or manually verified methods. These are operational states, not a bank statement. See the WooCommerce order status guide.

Razorpay can know the payment outcome before your WordPress site does. A browser redirect may not complete, a gateway callback may fail, or a plugin may receive an event but fail during order processing. The status mismatch is a symptom; it does not establish which part failed.

For now, pause automated fulfilment for the affected order. Tell the customer you are verifying the payment and will confirm the order shortly. Do not send a second payment request merely because WooCommerce still says Pending.

Step 1: Match the exact payment to the exact order

Open the WooCommerce order and record its order number, creation time, total, currency, payment method, and order notes. Then inspect the corresponding transaction in Razorpay's dashboard. Match the payment ID and gateway order ID where your integration exposes them; compare amount, currency, customer context, and timestamps. A similar amount on the same day is not enough.

Check whether the transaction was captured, merely authorized, failed, refunded, or never created. Capture is a separate state from a customer seeing an apparent success screen. If the payment is not captured, do not treat it as money received or mark the store order paid. If you cannot uniquely match the transaction to a WooCommerce order, escalate the case to the gateway or developer before changing either record.

Also look for a second WooCommerce order created by a retry. One customer may have two order numbers for one or two payment attempts. Resolve which payment belongs to which order before sending goods or changing statuses. Keep a short case note with the identifiers, findings, and action taken; avoid placing payment secrets or full customer financial details in it.

Step 2: Read order notes and the gateway log

WooCommerce order notes often show the last payment transition or an error. For deeper investigation, enable diagnostic logging in the relevant payment plugin if available, then check WooCommerce → Status → Logs. WooCommerce's payment troubleshooting guide explains this path and recommends using logs and order notes to narrow the failure. Some gateway logs must be enabled before the failure occurs, so an empty log is not proof that the callback was healthy.

Build a short timeline: checkout attempt, Razorpay payment state, notification delivery, plugin handling, and WooCommerce status update. Use the same IDs throughout. If a log shows a signature mismatch, inspect the webhook secret and raw request handling. If it shows an exception after receipt, investigate the plugin or another hooked extension. If there is no incoming event, inspect the gateway endpoint and delivery history.

You may need a developer to read the log safely. Mask personal information before sharing logs in a public support thread. Do not paste API keys, webhook secrets, or full payloads into chat.

Step 3: Check the Razorpay webhook path

Razorpay's WooCommerce integration guide asks merchants to configure the webhook URL provided by the plugin and subscribe to the supported payment events. The URL must point to the active production site and remain reachable; a staging URL, old domain, firewall rule, or cache can break delivery or handling.

Check these questions in the Razorpay dashboard and the store:

  • Was the relevant payment event sent to the configured endpoint?
  • Did Razorpay receive a success response, a failure, or a timeout?
  • Did the plugin record the same event and attach it to the matching order?
  • Did an error occur after the endpoint responded successfully?

A 200 delivery result is useful, but it does not prove the WooCommerce order reached Processing. The handler could acknowledge the event and a later action could fail. Conversely, delivery may be retried. Razorpay's webhook best practices discuss signed events, retry behavior, and why duplicate deliveries must not trigger duplicate business actions. For a custom integration, verify the signature against the raw body and make the payment update idempotent.

Do not confuse WooCommerce's own outgoing webhooks with Razorpay's incoming payment notification. They have opposite directions. Check the Razorpay integration settings and its delivery logs for the payment callback.

Step 4: Reconcile the affected order without creating another charge

Once the gateway record proves a captured payment and the IDs, amount, and currency match the WooCommerce order, record the evidence. Check for duplicate attempts, refunds, and any already processed fulfilment before updating the order. If you are using the official plugin, follow its documented recovery or support route for replaying or reconciling the event; avoid replaying an unverified browser request.

When a manual correction is necessary, an authorized store manager can update the specific verified order and add an order note explaining the payment ID, verification time, and reason for the change. Confirm what customer emails or fulfilment actions that status change will trigger. Do not bulk-mark all pending orders as paid. WooCommerce's payment gateway developer guidance recommends that integrations use the order's payment_complete() behavior when payment really has completed, so stock and downstream state are handled consistently.

If the gateway shows a refund or failed capture, the correct action is different. If there are two captures for one intended purchase, investigate a refund for the duplicate through the provider's documented process. Do not promise a refund or shipping date until the relevant transaction state has been verified.

Step 5: Fix and test the notification path

Make changes on a staging copy where possible: plugin version, webhook URL, secret configuration, security rules, cache exclusions, or conflicting checkout customizations. Update only the component identified by the evidence. A generic plugin update can introduce another problem if the real failure was a blocked endpoint.

Then run a test that follows the full journey on the same checkout type your customers use:

  1. Place a low-risk test order using the gateway's supported test mode.
  2. Confirm the gateway payment state and its transaction identifiers.
  3. Check delivery history and the store's order notes and logs.
  4. Confirm the order reaches the correct WooCommerce status once, and the confirmation is sent once.
  5. Repeat a retry or failed-payment case and check that it does not create a second paid fulfilment.

Test mobile checkout if mobile customers were affected. Record the plugin version, checkout type, and whether a security or caching layer sits in front of the callback endpoint. Keep a backup before changing production payment settings.

Add a daily paid-order mismatch check

For a store with regular orders, a daily exception report is more useful than waiting for a customer complaint. Compare captured Razorpay payments with WooCommerce orders that should be paid. Flag transactions with no matching order, paid transactions still Pending or Cancelled, duplicate payment IDs, and orders with conflicting amounts. A human should review exceptions before any automated status repair.

The report needs careful matching and secure access to both systems. A developer can build a small reconciliation job that stores only the identifiers and audit fields required, alerts the owner, and keeps a record of resolutions. If this is happening repeatedly, I can trace the checkout and webhook flow and build a reconciliation view through adityazen, so your team can resolve real paid orders without guessing from screenshots.

The safe decision in one sentence

When Razorpay says a customer paid but WooCommerce still shows Pending, verify the exact captured transaction, match it to the exact order, trace the notification path, and only then repair that order. Once the immediate case is resolved, test the whole flow and monitor for future mismatches. A faster status change is not a substitute for knowing whether money was actually received.

Author

me_adityazen

Full-Stack Web & Mobile App Developer crafting ultra-fast, high-converting digital products.

Share this article

Related Articles

Available for New Projects

Have a Project? Let's Connect

Have an idea for a website, web app, or mobile application? Send a quick message with your requirements and let's bring it to life.