1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9857],{5565:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/payment-online",function(){return n(5921)}])},9558:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(5893),s=n(7294),o=n(2179),a=n(348);function i(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return function(t){let[n,i]=(0,s.useState)({accessGranted:!1,userDetails:{}});return(0,r.jsx)(e,{...t,access:n,initialiseBase:()=>{try{let e=localStorage.getItem("userDetails"),t=localStorage.getItem(a.Wd);"string"==typeof e&&(e=JSON.parse(e)),t&&(o.M.defaults.headers.common.Authorization="Bearer ".concat(t),i({accessGranted:!0,userDetails:e}))}catch(e){console.log(e)}}})}}},686:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(5893);function s(e){let{valueHeight:t,valueWidth:n}=e;return(0,r.jsx)("div",{style:{height:t,width:n}})}n(7294)},5921:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return p}});var r=n(5893);n(7294);var s=n(3636),o=n(5675),a=n.n(o),i=n(394),u=n(686),c=n(1388),l={src:"/_next/static/media/fonePayIcon.e4e1ea45.svg",height:29,width:102,blurWidth:0,blurHeight:0},d=n(348);function h(e){let{amount:t,onProceedToPay:n}=e;return(0,r.jsxs)("div",{className:"py-6 bg-white rounded-xl border border-backgroundColor shadow-sm p-4",children:[(0,r.jsxs)(c.E,{className:"justify-between items-center",children:[(0,r.jsx)(a(),{src:l,alt:""}),(0,r.jsx)(i.yn,{children:"Pay with FonePay to successfully complete purchase."})]}),(0,r.jsx)(u.Z,{valueHeight:d.O5}),(0,r.jsxs)(i.yn,{children:["You will be redirected to FonePay payment page to complete your payment.",(0,r.jsx)("br",{}),(0,r.jsx)("br",{}),"1. Choose your bank.",(0,r.jsx)("br",{}),"2. Ensure your bank account is active and has enough funds.",(0,r.jsx)("br",{}),"3. Login to your mobile banking account using your mobile number and password.",(0,r.jsx)("br",{}),"4. Enter OTP (one time password) sent to your mobile number.",(0,r.jsx)("br",{}),(0,r.jsx)("br",{}),(0,r.jsx)("br",{}),"Login with your mobile banking account."]}),(0,r.jsx)(u.Z,{valueHeight:d.O5}),(0,r.jsxs)(c.E,{className:"justify-between border-t border-backgroundColor pt-4",children:[(0,r.jsx)(i.yn,{children:"Total"}),(0,r.jsxs)(i.ab,{children:["Rs. ",t," "]})]}),(0,r.jsx)(u.Z,{valueHeight:d.im}),(0,r.jsx)("button",{className:"w-full text-center bg-secondaryColor rounded-full py-3 font-semibold text-white hover:brightness-90 active:brightness-75 transition",onClick:()=>n(),children:"Proceed to Pay"})]})}var b=n(9558),y=n(1163),m=n(2179),p=(0,b.Z)(function(e){let{access:t,initialiseBase:n}=e,o=(0,y.useRouter)();return(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(s.Z,{showFooter:!1,backTitle:"Online Payment",accessGranted:t.accessGranted,children:(0,r.jsx)(h,{amount:o.query.amount,onProceedToPay:()=>{var e,t,n,r;let s={buyer_id:o.query.businessProfileBuyerID,payment_method:"full",shipping_address:o.query.primaryDeliveryAddressID,products:JSON.parse(""+o.query.products)};(e=s.buyer_id,t=s.payment_method,n=s.shipping_address,r=s.products,m.M.post("fonepay",{buyer_id:e,payment_method:t,shipping_address:n,products:r}).then(e=>e.data)).then(e=>{(null==e?void 0:e.status)==="success"&&window.open(e.url)}).catch(e=>{console.log("failure",e)})}})})})})}},function(e){e.O(0,[4838,3365,6660,5675,999,8738,3636,2888,9774,179],function(){return e(e.s=5565)}),_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.