PageSourceSearch

https://www.iict.org/_next/static/chunks/pages/checkout/callback-850b3469c6b04972.js

js iict.org collected 2026-10-06 05:35:31 UTC 6,057 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[306],{8066:function(e,l,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/checkout/callback",function(){return a(89267)}])},89267:function(e,l,a){"use strict";a.r(l),a.d(l,{__N_SSP:function(){return c}});var t=a(85893),n=a(13671),s=a(41664),o=a.n(s),r=a(67294);let i=e=>{let{label:l,value:a,mono:n=!1}=e;return(0,t.jsxs)("div",{className:"rounded-2xl border border-slate-200 bg-slate-50 p-4",children:[(0,t.jsx)("dt",{className:"text-xs font-semibold uppercase tracking-wide text-slate-500",children:l}),(0,t.jsx)("dd",{className:"mt-2 break-words font-semibold text-slate-900 ".concat(n?"font-mono text-sm":""),children:a})]})},d=e=>{var l,a,n,s;let{verificationResult:d,transactionInfo:c,paymentDetails:m}=e,u=null==d?void 0:d.success,[x,p]=(0,r.useState)(!1);(0,r.useEffect)(()=>{if(u)try{sessionStorage.removeItem("iict_pending_applicant")}catch(e){}},[u]);let h=(null==c?void 0:c.transaction_reference)||(null==m?void 0:m.reference)||(null==m?void 0:m.orderId)||"",b=(null==c?void 0:c.applicant)?"".concat(c.applicant.first_name||""," ").concat(c.applicant.last_name||"").trim():null;return(0,t.jsx)("main",{className:"py-12 px-4 sm:px-6 lg:px-8",children:u?(0,t.jsxs)("section",{className:"mx-auto w-full max-w-4xl overflow-hidden rounded-[40px] bg-white shadow-2xl md:rounded-[50px]",children:[(0,t.jsxs)("div",{className:"bg-gradient-to-br from-emerald-600 to-emerald-700 px-8 py-12 text-center text-white sm:px-14",children:[(0,t.jsx)("div",{className:"mx-auto flex h-20 w-20 items-center justify-center rounded-full bg-white text-4xl font-bold text-emerald-600 shadow-lg",children:"✓"}),(0,t.jsx)("p",{className:"mt-6 text-sm font-semibold uppercase tracking-[0.2em] text-emerald-100",children:"Application Complete"}),(0,t.jsx)("h2",{className:"mt-3 text-3xl font-bold sm:text-4xl",children:"Payment Successful"}),(0,t.jsx)("p",{className:"mx-auto mt-3 max-w-2xl text-emerald-50",children:b?"Thank you, ".concat(b,". Your application for ").concat((null==c?void 0:c.course)||"the selected course"," has been received successfully."):"Your payment and application details have been received successfully."})]}),(0,t.jsxs)("div",{className:"space-y-6 p-8 sm:p-12",children:[(0,t.jsxs)("dl",{className:"grid gap-4 sm:grid-cols-2",children:[b&&(0,t.jsx)(i,{label:"Applicant",value:b}),(null==c?void 0:c.course)&&(0,t.jsx)(i,{label:"Program",value:c.course}),(null==c?void 0:null===(l=c.applicant)||void 0===l?void 0:l.email)&&(0,t.jsx)(i,{label:"Email",value:c.applicant.email}),(null==c?void 0:null===(a=c.applicant)||void 0===a?void 0:a.phone)&&(0,t.jsx)(i,{label:"Phone",value:c.applicant.phone}),(null==d?void 0:null===(n=d.data)||void 0===n?void 0:n.enquiry_code)&&(0,t.jsx)(i,{label:"Enquiry Code",value:d.data.enquiry_code,mono:!0}),(null==c?void 0:c.amount)&&(0,t.jsx)(i,{label:"Amount Paid",value:new Intl.NumberFormat("en-IN",{style:"currency",currency:c.currency||"INR"}).format(c.amount)}),(null==m?void 0:m.paymentId)&&(0,t.jsx)(i,{label:"Payment ID",value:m.paymentId,mono:!0}),(null==m?void 0:m.orderId)&&(0,t.jsx)(i,{label:"Razorpay Order ID",value:m.orderId,mono:!0}),h&&(0,t.jsx)(i,{label:"Transaction Reference",value:h,mono:!0})]}),(0,t.jsx)("div",{className:"rounded-2xl border border-emerald-200 bg-emerald-50 p-5 text-sm leading-relaxed text-emerald-900",children:"Please save the payment and enquiry references for your records. Our admissions team will contact you using the details above."}),(0,t.jsx)("div",{className:"mt-8 flex justify-center",children:(0,t.jsx)(o(),{href:"/academics/programs",className:"rounded-full bg-brand-800 px-8 py-3.5 text-base font-semibold text-white shadow hover:bg-brand-700 transition",children:"Explore More Programs"})})]})]}):(0,t.jsxs)("section",{className:"mx-auto w-full max-w-4xl overflow-hidden rounded-[40px] bg-white shadow-2xl md:rounded-[50px]",children:[(0,t.jsxs)("div",{className:"bg-gradient-to-br from-rose-600 to-rose-700 px-8 py-12 text-center text-white sm:px-14",children:[(0,t.jsx)("div",{className:"mx-auto flex h-20 w-20 items-center justify-center rounded-full bg-white text-4xl font-bold text-rose-600 shadow-lg",children:"✕"}),(0,t.jsx)("p",{className:"mt-6 text-sm font-semibold uppercase tracking-[0.2em] text-rose-100",children:"Payment Incomplete"}),(0,t.jsx)("h2",{className:"mt-3 text-3xl font-bold sm:text-4xl",children:"Payment Failed"}),(0,t.jsx)("p",{className:"mx-auto mt-3 max-w-2xl text-rose-100",children:(null==d?void 0:d.message)||"Your transaction could not be processed. Please try again or c
1ontact admissions."})]}),(0,t.jsxs)("div",{className:"space-y-6 p-8 sm:p-12",children:[(0,t.jsxs)("dl",{className:"grid gap-4 sm:grid-cols-2",children:[b&&(0,t.jsx)(i,{label:"Applicant",value:b}),(null==c?void 0:c.course)&&(0,t.jsx)(i,{label:"Program",value:c.course}),(null==c?void 0:null===(s=c.applicant)||void 0===s?void 0:s.email)&&(0,t.jsx)(i,{label:"Email",value:c.applicant.email}),(null==c?void 0:c.amount)&&(0,t.jsx)(i,{label:"Application Fee",value:new Intl.NumberFormat("en-IN",{style:"currency",currency:c.currency||"INR"}).format(c.amount)}),h&&(0,t.jsx)(i,{label:"Transaction Reference",value:h,mono:!0})]}),(0,t.jsx)("div",{className:"rounded-2xl border border-rose-200 bg-rose-50 p-5 text-sm leading-relaxed text-rose-900",children:"No money was debited for this application. You can safely try your payment again with prefilled details."}),(0,t.jsx)("div",{className:"mt-8 flex justify-center",children:(0,t.jsx)("button",{type:"button",onClick:()=>{p(!0),window.location.href="/connect/enquirenow".concat(h?"?ref=".concat(encodeURIComponent(h)):"")},disabled:x,className:"rounded-full bg-brand-800 px-10 py-4 text-base font-semibold text-white shadow hover:bg-brand-700 transition disabled:opacity-50",children:x?"Redirecting...":"Try Payment Again"})})]})]})})};d.getLayout=function(e){return(0,t.jsx)(n.t,{seo:{title:"Payment Status - IICT"},children:e})};var c=!0;l.default=d}},function(e){e.O(0,[1664,774,3671,2888,9774,179],function(){return e(e.s=8066)}),_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.