How to Fix WooCommerce Gateway Timeouts: UK Guide 2026

17 August 2026

Learn how to fix WooCommerce gateway timeouts in the UK. Quick solutions for payment gateways, hosting, and caching.

What Causes WooCommerce Gateway Timeouts?

Gateway timeouts in WooCommerce typically occur when your web server fails to receive a response from the payment gateway within a set time limit. For UK merchants, this often happens during peak shopping hours, especially on high-traffic days like Black Friday. Common culprits include slow hosting, misconfigured PHP execution limits, outdated payment gateway plugins, and aggressive caching that blocks API callbacks. Additionally, UK GDPR compliance sometimes requires extra security checks, which can slow down transactions. Understanding that a timeout isn't always the gateway's fault is the first step. Check your server logs to see where the delay happens. Often, the issue lies between your WordPress site and the gateway's API, not the gateway itself.

Quick Fixes for UK Merchants

Start with the simplest fixes before diving into code. First, update WooCommerce, your payment gateway plugin, and WordPress to the latest versions. Many UK payment providers like Stripe and PayPal release frequent patches that address timeout bugs. Next, disable any recently installed plugins that might conflict with your payment gateway. Temporarily switch to a default theme like Storefront to rule out theme issues. Also, clear your browser cache and any server-side caches like WP Rocket or W3 Total Cache. If you're using a managed WordPress host in the UK, check if they have a firewall that might be blocking webhook requests from payment gateways. Often, a quick cache purge and plugin update resolves the issue within minutes.

Hosting and Server Configuration (UK-specific)

Your hosting server's configuration plays a huge role in preventing gateway timeouts. Many UK merchants on shared hosting face PHP execution time limits of 30 seconds or less. For WooCommerce, we recommend increasing the max_execution_time to at least 120 seconds. You can do this via your hosting control panel, usually in the PHP settings section. If you're on a UK provider like SiteGround, Krystal, or 123 Reg, check their support guides on adjusting PHP timeouts. Also, ensure your server uses HTTP/2 and has adequate memory (at least 256MB). If you're experiencing frequent timeouts, consider upgrading to a VPS or dedicated server. UK data centres with low latency to payment gateways' UK endpoints can significantly reduce timeout risks.

Payment Gateway Plugin Optimisation

Your payment gateway plugin might have its own timeout settings. For instance, the Stripe plugin for WooCommerce has a 'Timeout' setting in its advanced options. Set this to 60 seconds or higher to prevent premature cancellations. Similarly, PayPal’s plugin may have a 'Request Timeout' parameter. In the UK, we also have gateways like Sage Pay, Worldpay, and Klarna. Each has its own recommended configuration. Check the official plugin documentation for timeout recommendations. Also, ensure that your gateway’s webhook URLs are correct and reachable. Sometimes, hard-coded site URLs in your database can cause callbacks to fail, leading to timeouts. Use a tool like 'Better Search Replace' to update URLs if you've recently moved your store or changed domains.

Preventing Timeouts with Monitoring and Cache

Prevention is better than cure. Set up monitoring on your WooCommerce checkout page to detect timeouts before they affect customers. For UK businesses, using a service like Pingdom or UptimeRobot with checks on your checkout endpoint can alert you instantly. Also, configure your caching plugin to exclude WooCommerce pages, cart pages, and checkout pages from caching. Caching these dynamic pages often breaks the payment flow and causes timeouts. Instead, use object caching for database queries. For UK merchants, ensure your CDN provider, if you use one, is configured to pass through POST requests to your origin server. Cloudflare, for example, can sometimes block payment gateway callbacks if the firewall rules are too strict. Regularly test your checkout with a dummy order to ensure everything runs smoothly.

FAQ

A checkout timeout usually means the server takes too long to process an API request to the payment gateway. In the UK, this can be caused by slow hosting, low PHP execution limits, outdated plugins, or security plugins that delay API response. Check your server error logs and increase max_execution_time to see if it resolves the issue.

Latest guides