PageSourceSearch

https://www.pryze.io/_next/static/chunks/pages/verifypaymenttest-e26f4aaddb06d0b5.js

js pryze.io collected 2026-10-02 01:04:56 UTC 6,525 bytes, 21 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7465],{91373:function(e,t,s){"use strict";s.d(t,{Z:function(){return o}});var a=s(67294);/**
2 * @license lucide-react v0.445.0 - ISC
3 *
4 * This source code is licensed under the ISC license.
5 * See the LICENSE file in the root directory of this source tree.
6 */let r=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),n=(...e)=>e.filter((e,t,s)=>!!e&&s.indexOf(e)===t).join(" ");/**
7 * @license lucide-react v0.445.0 - ISC
8 *
9 * This source code is licensed under the ISC license.
10 * See the LICENSE file in the root directory of this source tree.
11 */var l={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
12 * @license lucide-react v0.445.0 - ISC
13 *
14 * This source code is licensed under the ISC license.
15 * See the LICENSE file in the root directory of this source tree.
16 */let i=(0,a.forwardRef)(({color:e="currentColor",size:t=24,strokeWidth:s=2,absoluteStrokeWidth:r,className:i="",children:o,iconNode:c,...d},u)=>(0,a.createElement)("svg",{ref:u,...l,width:t,height:t,stroke:e,strokeWidth:r?24*Number(s)/Number(t):s,className:n("lucide",i),...d},[...c.map(([e,t])=>(0,a.createElement)(e,t)),...Array.isArray(o)?o:[o]])),o=(e,t)=>{let s=(0,a.forwardRef)(({className:s,...l},o)=>(0,a.createElement)(i,{ref:o,iconNode:t,className:n(`lucide-${r(e)}`,s),...l}));return s.displayName=`${e}`,s}},36316:function(e,t,s){"use strict";s.d(t,{Z:function(){return a}});/**
17 * @license lucide-react v0.445.0 - ISC
18 *
19 * This source code is licensed under the ISC license.
20 * See the LICENSE file in the root directory of this source tree.
21 */let a=(0,s(91373).Z)("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])},95769:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/verifypaymenttest",function(){return s(45457)}])},45457:function(e,t,s){"use strict";s.r(t);var a=s(85893),r=s(87066),n=s(36316),l=s(11163),i=s(67294),o=s(86501),c=s(85819);t.default=({pass:e})=>{let t=(0,l.useRouter)(),[s,d]=(0,i.useState)(),[u,m]=(0,i.useState)(!1),[h,x]=(0,i.useState)(!1),[p,f]=(0,i.useState)(!0),[g,y]=(0,i.useState)(!1);(0,i.useEffect)(()=>{/(orderId=)\w+/g.test(t.asPath)?t.query.orderId&&(x(!1),f(!1)):(x(!0),f(!1))},[t]);let w=async e=>{m(!0);try{let t=(await r.default.post("./api/verifyPaymentsTest",{orderId:e})).data.data;console.log("respData",t),d({...t})}catch(e){console.log(e)}finally{m(!1)}},j=e=>{navigator.clipboard.writeText(e),o.ZP.success("Copied to clipboard")},N=u||!s;return(0,i.useEffect)(()=>{t.query&&t.query.orderId&&!s&&w(t.query.orderId.toString())},[t,s]),(0,a.jsxs)("div",{className:"flex justify-center bg-white min-h-screen items-center flex-col w-full py-1",children:[(0,a.jsx)("div",{className:"flex flex-col items-center space-y-1",children:p?(0,a.jsx)(n.Z,{className:"animate-spin"}):h?(0,a.jsx)("p",{className:"text-3xl font-bold text-primary  text-center",children:"Oops!.. Invalid Link :("}):(0,a.jsx)("div",{children:N?(0,a.jsxs)("div",{className:"flex flex-col items-center space-y-2",children:[(0,a.jsx)("h1",{className:"text-3xl font-bold text-primary  text-center",children:"Fetching Payment Details"}),(0,a.jsx)(n.Z,{className:"w-6 h-6 text-primary animate-spin "})]}):(0,a.jsx)("div",{className:"w-[350px] mx-auto min-h-[450px] bg-white rounded-3xl shadow-lg px-8 py-4 relative",children:(0,a.jsxs)("div",{className:"flex flex-col items-center space-y-4 h-full",children:["0000"===s.status?(0,a.jsx)("img",{src:"/assets/tick-icon.svg",alt:"success",className:"w-24 h-24 rounded-full"}):(0,a.jsx)("img",{src:"/assets/esclamination-mark-icon.svg",alt:"success",className:"w-24 h-24 rounded-full"}),(0,a.jsxs)("h2",{className:"text-2xl  text-gray-800",children:["Transaction"," ","0000"===s.status?"Successful":"Failed"]}),(0,a.jsxs)("p",{className:"text-gray-500   flex items-center justify-center font-sm",children:["#",s.orderId," ",(0,a.jsx)("img",{src:"/assets/copy-icon.svg",alt:"rupee",className:"w-6 h-6 inline-block ml-1 cursor-pointer",onClick:()=>j(s.orderId)})]}),(0,a.jsxs)("div",{className:"w-full bg-gray-100 rounded-lg p-4 flex justify-between items-center",children:[(0,a.jsx)("span",{className:"text-gray-600   font-medium",children:"Amount (PKR)"}),(0,a.jsx)("span",{className:"text-gray-800 font-medium  flex items-center justify-center",children:s.amount})]}),(0,a.jsxs)("div",{className:"w-full bg-gray-100 rounded-lg p-4 flex justify-between items-center",children:[(0,a.jsx)("span",{className:"text-gray-600   font-medium",children:"Coins"}),(0,a.jsxs)("span",{className:"text-gray-800 font-medium  flex items-center justify-center",children:[(0,a.jsx)("img",{src:"/assets/rs-coin.svg",alt:"pryze-coin",className:"w-6 h-6 inline-block mr-1"}),s?.cash_amount]})]}),(0,a.jsx)("p",{className:"text-gray-400 text-center absolute bottom-6 w-[70%]",children:"0000"===s.status?`Congratulations! ${s.cash_amount} coins have been added to your wallet`:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{children:"Please "})," ",(0,a.jsx)("a",{target:"_blank",href:"https://wa.me/923225577993",className:"text-primary curs
21or-pointer hover:underline",children:"contact"})," ",(0,a.jsx)("span",{children:"our support team to resolve this issue"})]})})]})})})}),!u&&(0,a.jsx)("div",{className:"w-[350px] mt-4",children:(0,a.jsxs)("button",{className:"w-full text-white  gap-2 text-xl p-4 rounded-2xl button-gradient hover:opacity-90 transition-all flex items-center justify-center",disabled:g,onClick:()=>{y(!0),(0,c.Z)(s?.status==="0000"),["http://localhost:3000","https://pryze.io","http://52.204.229.134:3001","http://3.109.28.231:3002","https://games.pryze.io"].forEach(e=>{window.opener.postMessage({status:s?.status==="0000"},e)})},children:[g&&(0,a.jsx)(n.Z,{className:"w-4 h-4 ml-2 animate-spin"}),"Return to Wallet"]})})]})}},85819:function(e,t){"use strict";t.Z=e=>{console.log(`[addQueryParamAndReload] Starting with pass=${e}`);let t=new URL(window.location.href);console.log(`[addQueryParamAndReload] Current URL: ${t.toString()}`),t.searchParams.set("pass",String(e)),console.log(`[addQueryParamAndReload] Updated URL params: ${t.searchParams.toString()}`),window.history.pushState({},"",t.toString()),console.log(`[addQueryParamAndReload] Pushed new state with URL: ${t.toString()}`),console.log("[addQueryParamAndReload] Reloading page..."),window.location.reload()}}},function(e){e.O(0,[2888,9774,179],function(){return e(e.s=95769)}),_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.