ThriveCart success-page router
Internal. Routes post-purchase traffic to the right welcome page based on whether the upsell was taken. ThriveCart allows only one success page per funnel, so this sits between the cart and the thank-you pages.
Endpoints
/r— the router. This is the URL that goes in ThriveCart./r/debug— dumps the full query string as JSON instead of redirecting. Point ThriveCart here for one test order to confirm the payload, then switch to/r.
Destinations
| 48 · Live Trading Floor declined | TC_WELCOME_48_BASE | ✓ https://www.prosperityschool.com/welcome-a |
| 48 · Live Trading Floor accepted | TC_WELCOME_48_UPSELL | ✓ https://www.prosperityschool.com/welcome-b |
| 50 · SMC Engine declined | TC_WELCOME_50_BASE | ✓ https://www.prosperityschool.com/welcome-a-live-trading-floor |
| 50 · SMC Engine accepted | TC_WELCOME_50_UPSELL | ✓ https://www.prosperityschool.com/welcome-b-live-trading-floor |
| 51 · declined | TC_WELCOME_51_BASE | ✓ https://www.prosperityschool.com/welcome-a-live-trading-floor |
| 51 · accepted | TC_WELCOME_51_BASE | ✓ https://www.prosperityschool.com/welcome-a-live-trading-floor |
| No/unknown order | TC_FALLBACK | ✓ https://www.prosperityschool.com/welcome-a |
Set these in Vercel → Settings → Environment Variables, then redeploy. Any unset destination renders a plain thank-you page naming the missing variable rather than breaking the redirect.
ThriveCart setup
Two settings, both required. Product → Fulfillment→ “Send them to a URL” → the /r URL. Then checkout editor → Success Page → Edit → “Automatically redirect to Success URL”. Without the second, customers land on the ThriveCart-hosted page with a link instead of redirecting.