PageSourceSearch

https://indiehackerstacks.com/_next/static/chunks/pages/paymentCallback-cf4a7c1eb4303c03.js

js indiehackerstacks.com collected 2026-09-30 05:28:46 UTC 2,596 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[36],{3456:function(e,n,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/paymentCallback",function(){return s(830)}])},1189:function(e,n,s){"use strict";var t=s(5893);s(7294),n.Z=e=>(0,t.jsx)("div",{children:(0,t.jsx)("div",{className:"m-auto flex max-w-7xl flex-row",children:(0,t.jsx)("div",{className:"w-full",children:e.children})})})},830:function(e,n,s){"use strict";s.r(n),s.d(n,{default:function(){return PaymentCallback}});var t=s(5893),c=s(2207),l=s(7294),r=s(1189),i=s(3873);function PaymentCallback(){let[e,n]=(0,l.useState)("loading"),s=i.h.paymentCallback.paymentCallback.useMutation();return(0,l.useEffect)(()=>{let e=new URLSearchParams(location.search).get("checkout_session_id");if(!e){n("error");return}s.mutateAsync({checkout_session_id:e}).then(()=>{n("success")}).catch(()=>{n("error")})},[s.mutateAsync]),(0,t.jsx)(r.Z,{children:(0,t.jsxs)("div",{className:"mt-40 flex flex-col items-center",children:["error"===e&&(0,t.jsxs)("div",{className:"mt-30",children:["Something went wrong."," ",(0,t.jsx)("a",{className:"text-blue-500",href:"https://x.com/pieterbuilder",children:"Please let me know"})]}),"success"===e&&(0,t.jsxs)("div",{className:" flex flex-col items-center",children:[(0,t.jsx)(c.n,{className:"h-20 w-20 text-green-300"}),(0,t.jsx)("h1",{className:"text-xl",children:"Payment successful!"}),(0,t.jsxs)("div",{className:"mt-10",children:["You can"," ",(0,t.jsx)("button",{className:"text-blue-500",onClick:()=>window.close(),children:"close this window"})," ","now and return to your product onboarding."]})]})]})})}},2207:function(e,n,s){"use strict";s.d(n,{n:function(){return CheckIcon}});var t=s(5893),CheckIcon=({filled:e=!1,...n})=>
1e?(0,t.jsx)("svg",{"aria-hidden":"true",fill:"none",focusable:"false",height:"1em",viewBox:"0 0 24 24",width:"1em",...n,children:(0,t.jsx)("path",{d:"M12 2C6.49 2 2 6.49 2 12C2 17.51 6.49 22 12 22C17.51 22 22 17.51 22 12C22 6.49 17.51 2 12 2ZM16.78 9.7L11.11 15.37C10.97 15.51 10.78 15.59 10.58 15.59C10.38 15.59 10.19 15.51 10.05 15.37L7.22 12.54C6.93 12.25 6.93 11.77 7.22 11.48C7.51 11.19 7.99 11.19 8.28 11.48L10.58 13.78L15.72 8.64C16.01 8.35 16.49 8.35 16.78 8.64C17.07 8.93 17.07 9.4 16.78 9.7Z",fill:"currentColor"})}):(0,t.jsx)("svg",{"aria-hidden":"true",fill:"none",focusable:"false",height:"1em",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,viewBox:"0 0 24 24",width:"1em",...n,children:(0,t.jsx)("polyline",{points:"20 6 9 17 4 12"})})}},function(e){e.O(0,[774,888,179],function(){return e(e.s=3456)}),_N_E=e.O()}]);

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.