Skip to content

WooCommerce payment methods not showing at checkout: a diagnosis that ends in a fix

The gateway is installed and enabled but the customer sees no payment option. Work the causes in the order they actually occur, from a zero-total cart to a Checkout block with no gateway integration, using WP-CLI and the browser console.

A gateway that is installed and toggled on is not the same thing as a gateway that is available. WooCommerce builds the checkout payment list twice: once from every registered gateway, then again through woocommerce_available_payment_gateways, which throws away anything the cart, the currency, the customer address, the connection scheme, or another plugin says should not be offered right now. Almost every “my payment method disappeared” ticket resolves at that second pass. Print both lists side by side with WP-CLI and the gap between them names your cause in about ninety seconds, without touching a single setting.

What you’ll accomplish

  • Print the registered gateway list and the available gateway list for a real cart, and read the difference.
  • Rule out the two causes that account for most of these tickets: a zero-total cart, and a gateway with no Checkout block integration.
  • Trace which plugin removes a gateway inside woocommerce_available_payment_gateways, by priority.
  • Read the block checkout the way the browser sees it, using the WooCommerce data store rather than guesswork.
  • Confirm the fix with an end-to-end order rather than a reloaded settings screen.

Prerequisites

WooCommerce 9.x or 10.x on WordPress 6.5 or newer, PHP 8.1 or later. Shell access with WP-CLI available as wp, run as the site user from the WordPress root. Administrator access to the WooCommerce settings screens, and a browser with developer tools for the block checkout portion.

Two assumptions worth stating because they change the answer. First, High-Performance Order Storage (HPOS) is the default on new installs from WooCommerce 8.2 onward; a gateway plugin that has not declared HPOS compatibility can be deactivated by WooCommerce without a loud notice, which looks exactly like a gateway that stopped appearing. Second, the block-based Checkout is the default page content on stores created since WooCommerce 8.3, and the classic [woocommerce_checkout] shortcode is still what most older stores run. These two rendering paths do not offer the same gateways, and confusing them wastes more time on this problem than every other cause combined.

Have a real product ID handy for the test cart. Get one with wp post list --post_type=product --field=ID --posts_per_page=1.

How it works

A gateway travels through six gates between “the plugin is installed” and “the shopper sees a radio button”. It can fail silently at any of them, and WooCommerce logs nothing when it does.

The six gates a WooCommerce payment gateway passes between registration and rendering at checkout, with the reason it drops out at each one

The two lists that matter are produced by two different methods on the same object. WC()->payment_gateways()->payment_gateways() returns everything registered on the woocommerce_payment_gateways filter, enabled or not. WC()->payment_gateways()->get_available_payment_gateways() walks that list, keeps only gateways whose own is_available() returns true, drops every gateway when the cart does not need payment, and finally passes the survivors through the woocommerce_available_payment_gateways filter, where any plugin or snippet can remove more.

is_available() is written by the gateway author, so its rules differ per plugin, but the recurring checks are the same everywhere: the setting is enabled, live API credentials are present when test mode is off, the store currency is in the gateway’s supported list, and the billing country is in whatever country restriction the gateway exposes. A gateway that fails any of those returns false and vanishes with no error.

The block checkout adds a seventh gate that has no equivalent in the shortcode path. The Checkout block does not render server-side gateway HTML at all. It asks a JavaScript registry which payment methods registered a block integration through woocommerce_blocks_payment_method_type_registration, and renders only those. A gateway that is registered, enabled, and available in PHP but ships no block integration is simply absent from the block checkout. This is now the single most common cause of “it works on my old store and not the new one”, and no amount of settings-screen fiddling reveals it.

Step-by-step

1. Print the registered list. Start with what WooCommerce knows exists, before any availability logic runs.

wp eval 'foreach ( WC()->payment_gateways()->payment_gateways() as $id => $gw ) { printf( "%-24s enabled=%-4s %s\n", $id, $gw->enabled, $gw->get_title() ); }'
bacs                     enabled=no   Direct bank transfer
cheque                   enabled=no   Check payments
cod                      enabled=yes  Cash on delivery
stripe                   enabled=yes  Credit card
ppcp-gateway             enabled=yes  PayPal

If your gateway is missing from this output entirely, stop here: the problem is plugin loading, not checkout. Confirm with wp plugin list --status=active and check wp-content/debug.log for a fatal during the plugin’s boot.

2. Print the available list for a real cart. This is the command that solves most cases. It builds a cart, sets a billing country, calculates totals, and prints what checkout would actually offer.

wp eval 'wc_load_cart(); WC()->cart->empty_cart(); WC()->cart->add_to_cart( 1234 ); WC()->customer->set_billing_country( "CA" ); WC()->cart->calculate_totals(); echo "total: " . WC()->cart->get_total( "edit" ) . PHP_EOL; echo "needs_payment: " . var_export( WC()->cart->needs_payment(), true ) . PHP_EOL; foreach ( WC()->payment_gateways()->get_available_payment_gateways() as $id => $gw ) { echo "available: " . $id . PHP_EOL; }'
total: 129.00
needs_payment: true
available: cod
available: stripe

Replace 1234 with your own product ID and CA with the billing country the affected customers use. Compare against step 1. A gateway present there and absent here has failed is_available() or been removed by the filter.

3. Read the cart gate first. If the output shows needs_payment: false, or a total of 0.00, nothing else matters — WooCommerce skips payment collection entirely and shows a “no payment methods available” notice or an order button with no methods above it. A 100 percent coupon, a fully discounted subscription trial, and an all-virtual free cart all land here. This is expected behaviour, not a bug, and the fix is a business decision about whether zero-total orders should exist at all.

4. Find who is unsetting it. If the total is fine and the gateway still vanishes, list the callbacks attached to the availability filter, in priority order.

wp eval 'global $wp_filter; $h = $wp_filter["woocommerce_available_payment_gateways"] ?? null; if ( ! $h ) { echo "no callbacks registered" . PHP_EOL; return; } foreach ( $h->callbacks as $prio => $cbs ) { foreach ( array_keys( $cbs ) as $key ) { echo $prio . "  " . $key . PHP_EOL; } }'
10  WC_Shipping_Zones::filter_gateways
20  wholesale_hide_cod_for_retail
99  snippet_restrict_gateway_by_country

Callbacks at priority 20 and above that you do not recognise are the usual culprits: a wholesale plugin, a country-restriction snippet in the theme, or a leftover fragment in a code-snippets plugin. Grep for the function name across wp-content to find it.

5. Check the store context. Currency, allowed countries, and scheme, in one pass.

wp option get woocommerce_currency
wp option get woocommerce_allowed_countries
wp option get siteurl
CAD
all
https://example.com

If siteurl still starts with http://, most modern gateways return false from is_available() on principle and the whole card section disappears. Fix the certificate and the URLs before investigating anything else.

6. Determine the rendering mode. This is the step people skip, and it is the one that explains the block-checkout cases.

wp post get "$(wp option get woocommerce_checkout_page_id)" --field=post_content | head -3
<!-- wp:woocommerce/checkout -->
<div class="wp-block-woocommerce-checkout alignwide wc-block-checkout is-loading">

If you see <!-- wp:woocommerce/checkout -->, you are on the block checkout. If instead you see [woocommerce_checkout], you are on the classic shortcode and step 7 does not apply to you.

7. Read the block registry from the browser. Open the checkout page in a normal browser session with items in the cart, and run this in the developer console.

wp.data.select( 'wc/store/payment' ).getAvailablePaymentMethods()
{cod: {name: 'cod'}, stripe: {name: 'stripe'}}

A gateway that appeared in step 2 but not here has no block integration, or its integration script failed to load. Switch to the Network tab, reload, and filter for the gateway’s script handle: a 404 or a 403 on that file is the whole answer. If the console instead shows an uncaught error from an unrelated plugin’s script, that error halted execution before the payment methods rendered — the gateway is fine and the other plugin is the bug.

8. Confirm credentials are live, not test. Gateways in test mode with no live keys saved often hide themselves in production. The pattern is the same for every gateway; substitute your own option name.

wp eval '$s = get_option( "woocommerce_stripe_settings", array() ); echo "enabled: " . ( $s["enabled"] ?? "unset" ) . PHP_EOL; echo "testmode: " . ( $s["testmode"] ?? "unset" ) . PHP_EOL; echo "live key present: " . ( empty( $s["publishable_key"] ) ? "no" : "yes" ) . PHP_EOL;'
enabled: yes
testmode: yes
live key present: no

9. Rule out a cached checkout. If WP-CLI and the console both look correct but the live page still shows nothing, you are being served a stale document.

curl -sI 'https://example.com/checkout/' | grep -Ei '^(age|cache-control|x-cache|cf-cache-status|x-litespeed-cache):'
cache-control: no-store, no-cache, must-revalidate
x-cache: BYPASS

HIT, or any age above zero, means the checkout page is cached and must be excluded. Our WooCommerce caching rules article covers the exclusion set and the cookies that drive it.

10. Bisect only if the above is inconclusive. On a staging copy, not production.

wp plugin deactivate --all --exclude=woocommerce,woocommerce-gateway-stripe
Plugin 'wordpress-seo' deactivated.
Plugin 'wpforms-lite' deactivated.
Success: Deactivated 14 of 14 plugins.

Re-run step 2. If the gateway reappears, reactivate in halves with wp plugin activate <slug> until it disappears again.

Validate it works

Do not trust a settings screen that says “enabled”. Validate at all three layers.

Re-run step 2 against three carts: a normal physical product, an all-virtual cart, and a cart with a large coupon applied. The gateway should appear in the first two and may legitimately vanish in the third if the total reaches zero.

Then load the real checkout in a private window with no admin session, confirm the method renders, and place one live order for the smallest amount your catalogue allows. Refund it afterwards. Finally, confirm the order recorded the gateway you expected.

wp wc shop_order list --user=1 --per_page=3 --fields=id,status,total,payment_method_title
+------+------------+--------+-----------------------+
| id   | status     | total  | payment_method_title  |
+------+------------+--------+-----------------------+
| 8841 | processing | 4.00   | Credit card           |
+------+------------+--------+-----------------------+

A payment_method_title that is empty or reads as the wrong gateway means the order was created through a path you did not test.

Troubleshooting

The gateway is registered and no plugin hooks the filter, but it is still unavailable. The gateway’s own is_available() is returning false. Open the plugin’s main gateway class and read that method directly — it is usually twenty lines and states its own conditions. The frequent triggers are an unsupported store currency, a missing merchant account ID, and an account that the provider has placed in review.

It works logged out but not logged in, or the reverse. Two different causes wear this costume. Either a role-based restriction (a wholesale or membership plugin filtering the availability list by capability), or a cache that serves logged-out visitors a document generated for a different cart state. Step 9 separates them: if the headers show a cache hit for anonymous visitors only, it is caching.

The block editor preview shows the gateway but the front end does not. The editor preview renders a static placeholder, not the live registry. Trust step 7 over the preview. If the integration script 404s, reinstall the gateway plugin so its build assets are restored, then hard-reload.

The gateway disappeared right after a WooCommerce update. Check WooCommerce, then Settings, then Advanced, then Features for a list of plugins declared incompatible with HPOS. WooCommerce can suppress an incompatible plugin, and the symptom is a gateway that was working an hour ago. The HPOS migration guide covers declaring compatibility and the rollback path.

Only customers in one country see the problem. Compare the gateway’s own country restriction against WooCommerce’s “Sell to specific countries” list, then check WooCommerce, then Settings, then General, then Default customer location. If that is set to geolocate and the site is behind a full-page cache without the cache-support variant, every visitor inherits the first visitor’s country and the availability rules resolve against the wrong address.

When this is the wrong approach

If the payment method renders and the customer can select it, but the order fails on submit with a declined card, a 3DS loop, or a webhook that never fires, this article is not your problem — that is a gateway-integration failure and belongs in the provider-specific runbook.

If a shipping method is missing rather than a payment method, the mechanism is different: shipping runs through zones and classes, and the diagnosis starts at the matched zone rather than the availability filter.

If you are writing a custom gateway, do not diagnose it from the front end. Add temporary logging inside your own is_available() and read wp-content/uploads/wc-logs/ instead of inferring from what renders.

And if the store is mid-migration between hosts or mid-theme-swap, fix the environment first. Half-migrated stores produce every symptom in this article at once, and each one you chase will be a consequence rather than a cause.

Decision tree splitting the checkout symptom into no methods at all, some methods missing, and missing for some buyers only, with the likely causes under each

The official references worth keeping open while you work are the WooCommerce documentation for the settings screens and the WooCommerce developer portal for the filter and block-registration APIs named above.

Running WordPress that earns real money deserves an operator — Stack Harbor runs that stack under Enterprise WordPress; book an infrastructure consult.