Troubleshoot payment errors

Payment errors can depend on your gateway, its setup, your site, or the customer’s payment method. Before you start, identify the gateway and record the complete error message. You may need access to your WooCommerce dashboard and your gateway account.

WooCommerce includes built-in payment options. You can also browse payment gateways in the WooCommerce.com Marketplace.

For a payment that times out or remains pending, follow the payment timeout troubleshooting checklist in Troubleshooting Orders.

Common errors and their causes

↑ Back to top

When encountering errors, these general guidelines can help:

  • Error codes: Record the complete code and message, then check the payment gateway’s documentation. A code’s meaning can depend on the gateway and the request.
  • Blank page: A PHP error is one possible cause. In WooCommerce > Status > Logs, check for a fatal-errors log from the time of the issue. If you can’t find a relevant log, ask your host for help checking server errors.

Setting up a test environment

↑ Back to top

If you would like to set up a separate test environment for your WooCommerce site to troubleshoot payment errors, we recommend setting up a staging site.

Many payment gateways also offer a test or sandbox mode for testing their functionality. Refer to your payment gateway’s documentation for the exact steps for activating this.

Order statuses

↑ Back to top

Order statuses indicate where an order stands in the payment and fulfillment process. Here’s a breakdown:

  • On hold: Payment is awaiting confirmation. This can happen with manual payment methods, delayed notifications, or a gateway that separates authorization and capture. Check the order notes and your gateway’s documentation for the next step.
  • Pending payment: The order was received but remains unpaid. It may be waiting for the customer to complete payment.
  • Processing: The order is awaiting fulfillment. Whether payment has been collected depends on the payment method.
  • Completed: The order has been fulfilled successfully.
  • Failed: Payment was unsuccessful or declined. Check the order notes for any specific error information.

For the full list of statuses and their meanings, see Order statuses.

Checking order notes and logs

↑ Back to top

Order notes provide a summary of what happened during a transaction. Your payment gateway may also provide logs. Check its documentation for the logging setting and any precautions for the information it records. If your gateway writes logs to WooCommerce, you can find them under WooCommerce > Status > Logs.

After troubleshooting, disable any temporary debug logging you enabled, following your gateway’s instructions.

Theme or plugin conflict

↑ Back to top

Conflicts with plugins or your theme can cause issues such as:

  • missing or improperly displayed payment options at checkout,
  • failure to redirect customers to the correct confirmation page, and
  • Blocked API responses from the gateway.

If you encounter issues, consider:

  • checking for outdated plugins or themes,
  • testing for conflicts on a staging site, following the backup and testing steps in that guide.

For an error about incorrect credentials, check your gateway’s documentation and confirm the credentials with your payment processor.

System status report

↑ Back to top

The WooCommerce System Status Report provides insights into potential issues. Key things to check include:

  • Is the site running the latest versions of WordPress and WooCommerce?
  • Is PHP up to date? Older versions can cause compatibility problems.
  • Does the server meet the requirements listed in your payment gateway’s documentation?
  • Are the WooCommerce pages (like checkout) properly configured?

Payment notifications

↑ Back to top

Some gateways send notifications to your store about payment events. How to configure and troubleshoot them depends on your gateway. For example, with the WooCommerce Stripe extension, check the webhook setup and status. For other gateways, refer to their documentation.

If notifications aren’t working, double-check the notification URL or configuration for your specific gateway.

After making a change, repeat the affected checkout or payment test in your test environment. Check the order notes and the gateway’s records to confirm the result. If the error continues, share the error message and relevant logs with your gateway’s support team.

Questions and support

↑ Back to top

Do you still have questions and need assistance? 

  • Get in touch with a Happiness Engineer via our Help Desk. We provide support for extensions developed by and/or sold on WooCommerce.com, and Jetpack/WordPress.com customers.
  • If you are not a customer, we recommend finding help in the WooCommerce support forum or hiring a Woo Agency Partner. These are trusted agencies with a proven track record of building highly customized, scalable online stores. Learn more about Woo Agency Partners.
Use of your personal data
We and our partners process your personal data (such as browsing data, IP Addresses, cookie information, and other unique identifiers) based on your consent and/or our legitimate interest to optimize our website, marketing activities, and your user experience.