How to Read the WooCommerce Payment Debug Log in 6 Steps

WooCommerce payment debug log: a terminal window with highlighted log lines and a magnifier (TechBella Solutions)

When a payment goes wrong, the customer’s screen tells you almost nothing, and the order note may be short. The detail you need, such as what the gateway sent back and when, is often only in the logs. Knowing how to read them can turn a day of guessing into ten minutes of checking.

This guide to WooCommerce payment debug logging explains where WooCommerce keeps logs, how to switch on the extra detail from a payment plugin, what to look for, how to keep secrets safe and when to switch logging off again. It is written for store owners and for the developers who support them, and it describes the debug logging in the TechBella CCAvenue plugins.

StepWhat to do
EnableTurn on the gateway debug log, ideally while testing in sandbox mode
ReadFind the request, response, order update and error lines for your order
ProtectRemove keys and customer data before sharing a log
DisableTurn logging off and delete old logs when finished
A short routine for using WooCommerce payment logs to investigate problems.

What payment logs are for

A log is a plain record of events with times. For payments, it can show that your store sent a request to the gateway, what the gateway answered and how your store reacted. If a customer says they paid and your order stayed unpaid, the log can show whether the gateway’s result reached your site at all.

Logs are a tool for investigation, not for everyday use. They grow quickly, they can hold sensitive details and they slow nothing down only when they are modest. Switch them on when you need them and off when you are done.

Where WooCommerce keeps logs

WooCommerce has a built-in log viewer. In the admin, open WooCommerce, then Status, then Logs. You will see log files grouped by source, usually named after the plugin or feature, with a date. Payment plugins that use the standard WooCommerce logger write there, and you can search by source and date.

WordPress itself can also write a general debug file, described in the WordPress debugging guide, which is useful for PHP errors. That needs a setting in the site configuration and server access, so ask your developer rather than editing files yourself. Keep the two apart in your mind. The WooCommerce log is about what the plugin did, and the PHP debug file is about what went wrong in the code.

Turning on the plugin’s debug log

Both the free and the Pro TechBella CCAvenue plugins include a debug logging option in the gateway settings. When enabled, the plugin records the main steps of a payment, such as building the request and processing the gateway’s response, in the WooCommerce logs. The steps below apply to most gateways.

  1. Open WooCommerce, then Settings, then Payments, and open your gateway.
  2. Tick the debug logging option and save.
  3. Reproduce the problem, ideally with a sandbox test order.
  4. Open WooCommerce, then Status, then Logs and choose the log for that gateway and date.
  5. Read the lines around the time of your test.
  6. Switch debug logging off again when you have finished.

Use the sandbox for step 3 whenever possible, so you never need to log real card details or real customers’ data. Our sandbox testing guide explains the tests worth running.

How to read a payment log

You do not need to understand every line. Look for four things.

  • A request line. It shows that your store contacted the gateway, with a time.
  • A response or callback line. It shows that the gateway answered, and usually the result.
  • An order update line. It shows what status your store set.
  • An error line. It often names the problem, such as a failed verification or a missing field.

Compare the times with the order notes and with the gateway dashboard. If the request line exists but the response line does not, the result never arrived, and the cause is usually a blocked request, a firewall rule or a changed site address. If the response arrived but the order did not update, the problem is inside your site.

Matching the log with the order

Write down the order number, the gateway reference and the time for each case. Search the log for the order number. A clean case has a request, a response and an update within seconds of each other. A messy case has gaps, and the gap shows where to look. Our guide to failed payment orders explains how to decide what to do with the order itself.

Keeping secrets out of your logs

Logs can contain sensitive material. Before you share one with anyone, read it and remove keys, working keys, access codes, customer names, emails, phone numbers and addresses. Never paste an unreviewed log into a public forum or a chat. If you suspect a key has been exposed, ask your gateway to rotate it and update the plugin settings. Our OWASP Top 10 guide explains why secrets in logs are a recognised risk.

How long to keep logging on

Turn debug logging on for the shortest time that answers your question. Delete old log files when you have finished, and check that your host does not store them in a public folder. WooCommerce log files are kept outside the normal public pages, but confirm this with your developer, especially on custom setups. A log that nobody reads is a risk without a benefit.

Common patterns and what they usually mean

What you seeWhat it often means
No request lineThe customer never reached the payment step, or an error occurred before it
Request but no responseThe result never reached your site, so check firewalls, caching and site address
Response with an errorThe gateway rejected the request, so check credentials, region and currency
Response fine but order not updatedA site-side issue, such as a conflicting plugin or a timeout

These are starting points, not diagnoses. Always check the gateway dashboard too.

Logs and updates

After every WooCommerce, PHP or plugin update, test one order with debug logging on, on staging. The log shows whether anything changed in the flow. Our update guide in the maintenance checklist covers the wider routine, and our PHP 8.5 guide helps you plan server changes.

What the plugin does not log

The plugin is designed to avoid holding card numbers. Card details are entered on the gateway’s page for redirect checkout, so they do not pass through your logs. That does not remove your duty to treat logs as sensitive, and the plugin cannot see what the bank does after the customer leaves your site.

When to ask for help

If you have a log, an order number and a gateway reference and still cannot explain a failure, send the cleaned details to a developer. Our website maintenance team can read the logs with you and trace a payment from click to order note.

A worked example from a log

Imagine you test a sandbox order at 10:42. You open the log for that day and search for 10:42. You find a line that the plugin built a request for the order, a line a few seconds later that the gateway returned a result, and a line that the order was set to Processing. All three exist, and the times are close together, so the flow worked.

Now imagine the same test where the third line is missing and there is an error about a failed verification. That tells you the result arrived, the plugin could not accept it, and the next step is to check credentials, the region and the keys. The log has narrowed the search from “payments are broken” to one specific check.

Logging during busy periods

Logs grow fast on a busy store. Leave debug logging off during sales unless you are chasing a live problem, because large files take space and are slow to read. If you must switch it on, do it for a short time, note the start and end times and clear the files afterwards. Check with your host how much storage you have, and set a reminder to turn logging off again. Our White Friday guide explains sale preparation.

Server logs versus WooCommerce logs

Your host also keeps logs, such as web server access logs and PHP error logs. They answer different questions. The WooCommerce log shows what the plugin did. The access log shows which requests arrived at your server, including the gateway’s return request, and the PHP error log shows crashes and warnings. If the WooCommerce log shows no response from the gateway, ask your host to check whether the return request appears in the access log.

If it does not, something outside WordPress, such as a firewall, is blocking it. Ask your host for access, or ask them to check for you.

Privacy and data protection

Logs are records about customers and orders, so treat them under the same privacy rules as other personal data. Keep only what you need, for as short a time as you need, and limit who can read them. If you work with an agency or freelancer, share logs through a secure channel, remove personal data first and agree what they may keep. Our IT outsourcing checklist covers questions to ask about data handling.

WooCommerce payment debug log. A quick summary

A WooCommerce payment debug log shows the request, the gateway’s response and the order update for each payment. Turn the gateway’s debug logging on for a short test, read the lines around the time of the order, remove secrets before sharing and turn logging off afterwards. A clean WooCommerce payment debug log shows the flow worked, and gaps show where to look next.

Key takeaways on woocommerce payment debug log

  • Switch on the WooCommerce payment debug log only for the time you need it.
  • Read request, response and update lines in the WooCommerce payment debug log.
  • Remove secrets before you share a WooCommerce payment debug log.

Need a CCAvenue gateway for WooCommerce?

TechBella Payment Gateway Pro connects WooCommerce to your own CCAvenue merchant account, with the UAE region, Blocks checkout and compatibility updates. It is an independent plugin, not an official CCAvenue product.

See the Pro plugin

Frequently Asked Questions

Where do I find WooCommerce logs?

In the WordPress admin, go to WooCommerce, then Status, then Logs. Choose the log for your gateway and the right date.

Is it safe to leave debug logging on?

Not for long. Logs can contain sensitive details and grow in size. Turn debug logging on for an investigation and off afterwards.

Can I send a log file to support?

Only after you have removed keys, access codes and customer details. Read the file first and share the smallest part that shows the problem.

Does the plugin log card numbers?

Card details are entered on the gateway’s page in a redirect checkout, so they do not pass through your site’s logs. Still treat logs as sensitive.

Share This Article:

Start a project

Having a project idea in mind?

Tell us what you are building. A few lines about your goals are enough to start.

  • What you want to achieve
  • Your current website or setup
  • Deadlines and a rough budget