Find the symptom first
Open the checkout in a private window with the browser console and the Network tab open, and match what you see:
| What you see | Likely cause | Where to look |
|---|---|---|
| Spinner that never ends, empty payment step | Static content missing for the live theme or locale | Network tab: 404 on a .js or .html file |
| Works after a hard refresh, fails for customers | Stale cache or mixed static versions | Response headers, Age, CDN cache |
| Error in the console after a module update | A JavaScript mixin no longer matches | Console stack trace names the module |
| No shipping or payment method for some countries | Configuration differs from staging | Stores → Configuration, config:show |
| Payment widget never appears | Content Security Policy blocks a script | Console: “Refused to load the script” |
1. Static content that did not deploy
Checkout is built from RequireJS modules and Knockout templates served as static files. If setup:static-content:deploy ran for the wrong locale or theme, or did not run at all, checkout loads a page shell and stops. The HTML is fine; one missing JavaScript file is not. Deploy every locale and theme the store actually uses:
bin/magento maintenance:enable
bin/magento setup:upgrade --keep-generated
bin/magento setup:di:compile
bin/magento setup:static-content:deploy en_US el_GR --jobs=4
bin/magento cache:flush
bin/magento maintenance:disable-f.2. Stale caches and version mismatches
Full page cache, Varnish, a CDN and the browser all hold copies of something. After a deploy, a cached page can reference a static version that no longer exists, or a new page can meet an old cached section. The symptom is intermittent: it works for you after a hard refresh and fails for customers.
Flush Magento, then purge Varnish and the CDN, in that order, and check from a clean browser with no cookies. This shows whether the checkout came from a cache:
curl -sI https://example.com/checkout/ | grep -iE "cache-control|age|x-cache|x-magento"3. A third-party module update
Payment, shipping, one-step checkout and tax modules plug deep into the checkout layout and JavaScript mixins. A composer update pulls a new minor version, a mixin now targets a method that changed, and the payment step throws. The error is in the browser, so the server log stays clean.
When checkout fails right after a deploy, the package diff is the first place to look:
# Which packages changed in this release?
git diff HEAD~1 -- composer.lock | grep -E '^[-+]\s+"(name|version)"'
# Which modules are enabled now?
bin/magento module:status --enabled | grep -v Magento_4. Configuration drift between environments
Shipping methods, payment credentials, allowed countries and minimum order amounts live in the database, not in code. Staging has sandbox keys and a permissive setup; production has something else. A config import, or a manual change made the same afternoon, can leave production with no shipping method for a country or a payment method switched off.
# Compare the values that decide whether a shopper can pay
bin/magento config:show carriers/flatrate/active
bin/magento config:show general/country/allow
bin/magento config:show payment/checkmo/activeSettings locked in app/etc/config.php or env.php with app:config:dump cannot drift through the admin, and they travel with the release.
5. Content Security Policy
Since Magento 2.4.7, CSP runs in restrict mode on payment pages. A new tracking script, a payment provider domain or an inline script that is not allowed gets blocked by the browser. The page looks normal until the moment the payment widget should appear, and the console shows the blocked URL.
Allow the domain in a csp_whitelist.xml in your own module, not by switching CSP off. After every release, watch the console on checkout, or let a monitor record it as evidence on each run. Related: upgrading Magento 2.4 safely, full page cache and checkout and checkout stuck on billing.
Check your own store now with the free Magento checkout test: it walks the checkout in a real browser, Luma or Hyvä, and shows the step where it stops.
Find out your checkout broke before your customers do.
Real checkout checks for Magento and WooCommerce · free plan · no card requiredMagento checkout monitoring →