(()=>{var e={};e.id=379,e.ids=[379],e.modules={10846:e=>{"use strict";e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},44870:e=>{"use strict";e.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},3295:e=>{"use strict";e.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},29294:e=>{"use strict";e.exports=require("next/dist/server/app-render/work-async-storage.external.js")},63033:e=>{"use strict";e.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},79524:(e,t,r)=>{"use strict";r.r(t),r.d(t,{patchFetch:()=>x,routeModule:()=>c,serverHooks:()=>l,workAsyncStorage:()=>u,workUnitAsyncStorage:()=>d});var a={};r.r(a),r.d(a,{POST:()=>p});var s=r(42706),i=r(28203),o=r(45994),n=r(39187);async function p(e){try{let{email:t,amount:r,name:a}=await e.json(),s=await fetch("https://api.paystack.co/transaction/initialize",{method:"POST",headers:{Authorization:"Bearer sk_test_5ff80e5e96d7e34cafa5515f7b445446c11098e1","Content-Type":"application/json"},body:JSON.stringify({email:t,amount:100*r,callback_url:"http://localhost:3000/success",metadata:{name:a}})}),i=await s.json();if(!i.status)throw Error(i.message);return n.NextResponse.json(i)}catch(e){return console.error("Paystack initialization error:",e),n.NextResponse.json({error:"Failed to initialize payment"},{status:500})}}let c=new s.AppRouteRouteModule({definition:{kind:i.RouteKind.APP_ROUTE,page:"/api/initialize-paystack/route",pathname:"/api/initialize-paystack",filename:"route",bundlePath:"app/api/initialize-paystack/route"},resolvedPagePath:"C:\\Users\\od41\\Documents\\code\\paid\\loveisabc\\src\\app\\api\\initialize-paystack\\route.ts",nextConfigOutput:"",userland:a}),{workAsyncStorage:u,workUnitAsyncStorage:d,serverHooks:l}=c;function x(){return(0,o.patchFetch)({workAsyncStorage:u,workUnitAsyncStorage:d})}},96487:()=>{},78335:()=>{}};var t=require("../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),a=t.X(0,[994,452],()=>r(79524));module.exports=a})();