1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1347],{54621:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/ccavenue",function(){return t(79227)}])},79227:function(e,n,t){"use strict";t.r(n);var r=t(47568),a=t(26042),c=t(69396),s=t(97582),o=t(85893),u=t(67294),i=t(42474);n.default=function(){var e=(0,u.useState)({amount:1e3,merchant_id:"1734948",order_id:"1232321",access_code:"AVGD05KI19AZ09DGZA",currency:"INR",language:"EN",redirect_url:"https://umeindia.in/login",cancel_url:"https://umeindia.in/signup"}),n=e[0],t=e[1];console.log("hi");var d=function(){var e=(0,r.Z)((function(){var e,t,r,a,c;return(0,s.__generator)(this,(function(s){switch(s.label){case 0:console.log("clicked "),s.label=1;case 1:return s.trys.push([1,6,,7]),e=JSON.stringify(n),t=function(e,n){var t=i.createHash("md5");t.update(n);var r=t.digest(),a=i.createCipheriv("aes-128-cbc",r,"\0\x01\x02\x03\x04\x05\x06\x07\b\t\n\v\f\r\x0e\x0f"),c=a.update(e,"utf8","hex");return c+a.final("hex")}(e,"058C25764E50D15715813E3090A47195"),[4,fetch("https://test.ccavenue.com/transaction/transaction.do?command=initiateTransaction",{method:"POST",headers:{"Content-Type":"application/json"},body:t})];case 2:return 200!==(r=s.sent()).status?[3,4]:[4,r.json()];case 3:return a=s.sent(),console.log(a),[3,5];case 4:throw 404===r.status?new Error("Data not found"):new Error("Unexpected status code: ".concat(r.status));case 5:return[3,7];case 6:return c=s.sent(),console.log("error"+c),[3,7];case 7:return[2]}}
1))}));return function(){return e.apply(this,arguments)}}();return(0,o.jsxs)("div",{children:[(0,o.jsx)("h2",{children:"Payment Details"}),(0,o.jsxs)("form",{children:[(0,o.jsxs)("label",{children:["Order ID:",(0,o.jsx)("input",{type:"text",name:"orderId",value:n.order_id,onChange:function(e){return t((0,c.Z)((0,a.Z)({},n),{order_id:e.target.value}))}})]}),(0,o.jsx)("button",{type:"button",onClick:d,children:"Make Payment"})]})]})}}},function(e){e.O(0,[3714,6817,9774,2888,179],(function(){return n=54621,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
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.