PageSourceSearch

https://www.pryze.io/_next/static/chunks/pages/verifypaymentswitchtest-a42f44dfa03d1d16.js

js pryze.io collected 2026-10-02 01:04:55 UTC 5,642 bytes, 21 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7399],{91373:function(e,t,s){"use strict";s.d(t,{Z:function(){return c}});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:c,iconNode:o,...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},[...o.map(([e,t])=>(0,a.createElement)(e,t)),...Array.isArray(c)?c:[c]])),c=(e,t)=>{let s=(0,a.forwardRef)(({className:s,...l},c)=>(0,a.createElement)(i,{ref:c,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"}]])},95367:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/verifypaymentswitchtest",function(){return s(6843)}])},6843: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);s(86501),t.default=()=>{let e=(0,l.useRouter)(),[t,s]=(0,i.useState)(),[c,o]=(0,i.useState)(!1),[d,u]=(0,i.useState)(!1),[m,x]=(0,i.useState)(!0),[f,h]=(0,i.useState)(!1);(0,i.useEffect)(()=>{/(orderId=)\w+/g.test(e.asPath)?e.query.orderId&&(u(!1),x(!1)):(u(!0),x(!1))},[e]);let p=async e=>{o(!0);try{let t=(await r.default.post("/api/verifyPaymentCard",{orderId:e})).data.data;s({amount:t.amount,coins:t.coins,status:t.status,orderId:t.orderId})}catch(e){console.log(e)}finally{o(!1)}},y=c||!t;return(0,i.useEffect)(()=>{e.query&&e.query.orderId&&!t&&p(e.query.orderId.toString())},[e,t]),(0,a.jsxs)("div",{className:"flex justify-center bg-offwhite min-h-screen items-center flex-col w-full py-24",children:[(0,a.jsx)("div",{className:"flex flex-col items-center space-y-8",children:m?(0,a.jsx)(n.Z,{className:"animate-spin"}):d?(0,a.jsx)("p",{className:"text-3xl font-bold text-primary  text-center",children:"Oops!.. Invalid Link :("}):(0,a.jsx)("div",{children:y?(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-[500px] bg-white rounded-3xl shadow-lg p-8 relative",children:(0,a.jsxs)("div",{className:"flex flex-col items-center space-y-4 h-full",children:["0000"===t.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"===t.status?"Successful":"Failed"]}),(0,a.jsxs)("p",{className:"text-gray-500   flex items-center justify-center font-sm",children:["#",t.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:"PKR"}),(0,a.jsx)("span",{className:"text-gray-800 font-medium  flex items-center justify-center",children:t.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/pryze-old-coin.svg",alt:"pryze-coin",className:"w-6 h-6 inline-block mr-1"}),t.coins]})]}),(0,a.jsx)("p",{className:"text-gray-400 text-center absolute bottom-6 w-[70%]",children:"0000"===t.status?`Congratulations! ${t.coins} 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"})]})})]})})})}),!c&&(0,a.jsx)("div",{className:"w-[350px] mt-10",children:(0,a.jsxs)("button",{className:"w-full bg-gradient-to-b from-[#7E25AF] to-[#3F0359] hover:opacity-90 disabled:opacity-90 text-white  gap-2 text-xl p-4 rounded-2xl transition-all flex items-center justify-center ",disabled:f,onClick:()=>{h(!0),e.query.pass=t?.status==="0000"?"true":"false",e.push(e)},children:[f&&(0,a.jsx)(n.Z,{className:"w-4 h-4 ml-2 animate-spin"}),"Return to Wallet"]})})]})}}},function(e){e.O(0,[2888,9774,179],function(){return e(e.s=95367)}),_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.