Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Payment return URL broken: how to find and fix it

CNV-363High impactDetectedBy FunnelGuardPublished Updated
On this page

What this issue is

Many checkouts happen on another domain, such as Stripe Checkout, PayPal, Klarna or a hosted payment page. After payment, the provider redirects the customer back to your site. That address is the return URL (also called success URL, redirect URL or thank-you URL).

The URL is broken when it points to a deleted or renamed page, an old domain, an HTTP address that now redirects badly, a staging site, or a page that throws a server error. Cancel and failure return URLs can break the same way.

Where the journey breaks
  1. Product pageCustomer clicks Buy
  2. Payment providerCard is charged
  3. Return URLProvider redirects to a 404 or error
  4. Thank-you pageNever shown
  5. Purchase trackingConversion tag never fires

The payment succeeds, but the return step fails, so everything after it is lost.

Why it costs you leads or sales

The customer has just paid and now sees an error. Many assume the payment failed, pay again, contact support or ask for a refund. Others lose trust and never come back.

Your data suffers too. Purchase events for GA4, Google Ads, Meta and other platforms usually fire on the thank-you page. If it never loads, those sales go unreported and ad platforms optimise on incomplete data. Order emails or account setup that depend on that page can also fail.

Reported vs real purchasesExample numbers
Reported vs real purchases (example)Paid orders (payment provider): 100 purchases per week; Purchases tracked (return URL broken): 20 purchases per week; Purchases tracked (fixed): 100 purchases per week0387710020100Paid orders (payment …Purchases tracked (re…Purchases tracked (fi…purchases per week

Example: the shop takes 100 paid orders, but only the buyers who reach the thank-you page are tracked.

How to check if your site has it

Check your return URLs
  1. Find every return URL

    In your payment provider or checkout settings, list the success, cancel and failure URLs. Include any set in code, plugin settings or a payment link.

  2. Open each URL in a private window

    Check that each one loads with a 200 status and shows the right content. Watch for 404s, redirect loops, certificate warnings and staging domains.

  3. Run a test purchase

    Use the provider's test mode or a real low-value order. Follow the journey to the end and note the final URL and what you see.

  4. Compare orders with tracked purchases

    Look at the last few weeks of paid orders against GA4 or ad platform purchases. A sudden drop after a site change points to the return page.

Check the status code and redirects of a return URLbash
curl -sIL -o /dev/null -w "%{http_code} %{url_effective}\n" "https://example.com/thank-you"

How to fix it

The fix has two parts: make sure the destination page exists, and make sure the provider points to it. The exact menus depend on your platform and payment app.

Fix the return URL by platform
  1. Check the page exists

    In Pages, confirm the thank-you page is published and its permalink has not changed. Restore it from Trash if needed.

  2. Update the gateway settings

    In WooCommerce go to Settings > Payments, open your gateway and check any return or redirect URL. WooCommerce normally builds the order-received URL itself, so also look for redirect plugins or caching rules that interfere.

  3. Clear caches and redirects

    Purge page cache and check redirect plugins for rules that catch the order-received path.

Example: Stripe Checkout Session with explicit return URLs (Node)javascript
const session = await stripe.checkout.sessions.create({
  mode: 'payment',
  line_items: [{ price: 'price_123', quantity: 1 }],
  success_url: 'https://example.com/thank-you?session_id={CHECKOUT_SESSION_ID}',
  cancel_url: 'https://example.com/cart'
});

How to confirm it's fixed

After the fix
  • Each success and cancel URL returns a 200 status on the live domain
  • A full test purchase ends on the thank-you page with the right order details
  • The purchase event appears in GA4 DebugView or your tag tool, and in each ad platform
  • The confirmation email and CRM or order record are created
  • The cancel path returns the customer to the cart, not an error

How to prevent it happening again

Return URLs break quietly after redesigns, slug changes, domain moves, plugin updates and cache or redirect changes. Nobody visits the page unless they buy.

Habits that help
  • Keep a list of every return URL and where it is configured
  • Add a 301 redirect whenever you rename or delete a thank-you page
  • Retest a purchase after changing themes, plugins, domains or checkout apps
  • Never leave staging or test URLs in live provider settings
  • Monitor the purchase journey on a schedule instead of relying on manual tests

How FunnelGuard handles this

FunnelGuard detects this issue today. Its test purchase check runs your real checkout journey on a schedule with a robot visitor and verifies the return page the customer lands on afterwards. If that page fails, FunnelGuard re-checks from a second region before sending one alert with a screenshot and a likely cause.

Test traffic is marked (utm_source=funnelguard, fg_test=1) and stops before payment unless your store's test mode is set up, so the return step is only exercised when a test payment is possible. FunnelGuard never enters real card details. The Free plan covers 1 site and 2 journeys with daily checks and no card, and paid plans have a 3-day free trial.

Frequently asked

Questions people ask

Why does my site show a 404 after payment?

The payment provider is redirecting to a URL that no longer exists. This often happens after a page is renamed or deleted, a domain changes, or a redirect rule catches the path. Update the success URL in the provider settings or restore the page.

Where do I change the return URL in Stripe?

For Stripe Checkout, the success_url and cancel_url are set when you create the session in code, or in the Payment Link settings if you use payment links. Update them to live HTTPS pages on your domain.

Why is my purchase conversion not tracked after a redirect from the payment page?

Purchase tags usually fire on the thank-you page. If customers never reach it because the return URL is broken, or they close the tab before the redirect, the event never fires. Fix the return page and test a purchase.

Is the customer charged if the return page shows an error?

Usually yes. The payment completes with the provider before the redirect happens. Check your payment dashboard and webhooks to see the order, and contact affected customers.

How do I test a payment return URL without paying?

Use the provider's test mode with test card numbers, or the store's test mode, and complete a test order. Then check the final URL, page content and tracking events.

Should I use webhooks as well as a return URL?

Yes. Webhooks confirm payments server to server, even if the customer closes the tab. The return URL is for the customer experience and for browser-side tracking.

Can FunnelGuard tell me when my payment return page breaks?

Yes. FunnelGuard runs a test purchase check on a schedule and alerts you if the return page fails, with a screenshot and a likely cause. It stops before payment unless your test mode is set up.

Does FunnelGuard catch this?

Detected

FunnelGuard checks for this today.

How: test purchase return page.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.