PageSourceSearch

https://splashiq.ai/assets/checkout.return-B8el2LDA.js

js splashiq.ai collected 2026-10-05 12:43:41 UTC 2,674 bytes, 1 lines download raw bytes

1import{bU as d,r as c,j as e,L as o,B as i}from"./index-CzAkNt2W.js";import{v as m}from"./payments.functions-D-ga3xnA.js";function x(){const{session_id:s}=d.useSearch(),[t,r]=c.useState(null);c.useEffect(()=>{let n=!0;return s?(m({data:{sessionId:s}}).then(l=>{n&&r(l)}).catch(()=>{n&&r({status:"error",message:"We could not verify this checkout yet."})}),()=>{n=!1}):()=>{n=!1}},[s]);const a=t&&t.status!=="error"?t.reference.slice(-12):null;return e.jsx("div",{className:"min-h-screen bg-background",children:e.jsxs("main",{className:"mx-auto max-w-2xl px-6 py-20 text-center",children:[s?t?t.status==="complete"?e.jsxs(e.Fragment,{children:[e.jsx("h1",{className:"font-display text-3xl font-bold",children:"Checkout confirmed"}),e.jsx("p",{className:"mt-3 text-muted-foreground",children:"The payment provider confirmed this checkout. Your account may take a few seconds to reflect the signed webhook update."}),e.jsxs("p",{className:"mt-2 text-xs text-muted-foreground",children:["Reference ending ",a]})]}):t.status==="pending"?e.jsxs(e.Fragment,{children:[e.jsx("h1",{className:"font-display text-3xl font-bold",children:"Payment pending"}),e.jsx("p",{className:"mt-3 text-muted-foreground",children:"The provider has not confirmed payment yet. We will update billing only after a signed event arrives."}),e.jsxs("p",{className:"mt-2 text-xs text-muted-foreground",children:["Reference ending ",a]})]}):t.status==="failed"?e.jsxs(e.Fragment,{children:[e.jsx("h1",{className:"font-display text-3xl font-bold",children:"Checkout expired"}),e.jsx("p",{className:"mt-3 text-muted-foreground",children:"This checkout was not completed. Start a new checkout from the pricing page."})]}):e.jsxs(e.Fragment,{children:[e.jsx("h1",{className:"font-display text-3xl font-bold",children:"Verification unavailable"}),e.jsxs("p",{className:"mt-3 text-muted-foreground",children:[t.message," No account change is being claimed."]})]}):e.jsxs(e.Fragment,{children:[e.jsx("h1",{className:"font-display text-3xl font-bold",children:"Verifying checkout"}),e.jsx("p",{className:"mt-3 text-muted-foreground",children:"Confirming the result directly with our payment provider…"})]}):e.jsxs(e.Fragment,{children:[e.jsx("h1",{className:"font-display text-3xl font-bold",children:"Checkout incomplete"}),e.jsx("p",{className:"mt-3 text-muted-foreground",children:"We couldn't find a checkout session. Nothing was charged."})]}),e.jsxs("div",{className:"mt-8 flex justify-center gap-3",children:[e.jsx(o,{to:"/dashboard",children:e.jsx(i,{children:"Go to dashboard"})}),e.jsx(o,{to:"/pricing",children:e.jsx(i,{variant:"outline",children:"Back to pricing"})})]})]})})}export{x as component};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.