{"version":3,"file":"Paymentbutton.CjmDQJqe.mjs","names":[],"sources":["https:/framerusercontent.com/modules/SubbGy4iyzJwjncE16Y9/RIhzuVd0rvTcxjEpkPQH/Paymentbutton.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";export default function PaymentButton({onSuccess,amount}){const handlePay=()=>{if(!window.Razorpay){alert(\"Razorpay not loaded\");return;}const options={key:\"rzp_live_SZK5rMOP6TbC4J\",amount:amount*100,currency:\"INR\",name:\"Clearlaw\",description:\"Priority Editorial Review\",handler:function(response){onSuccess(response.razorpay_payment_id)// ✅ go to Step 5\n;},theme:{color:\"#000000\"}};const rzp=new window.Razorpay(options);rzp.open();};return /*#__PURE__*/_jsx(\"button\",{onClick:handlePay,style:{marginTop:10,padding:\"10px 20px\",borderRadius:10,background:\"#fff\",color:\"#000\",border:\"none\",width:\"fit-content\",fontWeight:600,whiteSpace:\"nowrap\",cursor:\"pointer\",display:\"block\",margin:\"left\",boxShadow:\"0 4px 12px rgba(0,0,0,0.15)\",transition:\"all 0.2s ease\"},onMouseDown:e=>{e.currentTarget.style.transform=\"scale(0.95)\";},onMouseUp:e=>{e.currentTarget.style.transform=\"scale(1)\";},onMouseLeave:e=>{e.currentTarget.style.transform=\"scale(1)\";},children:`Pay ₹${amount}`});}\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"PaymentButton\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Paymentbutton.map"],"mappings":"kHAA2C,SAAwB,EAAc,CAAC,YAAU,UAAQ,CACpB,OAAoB,EAAK,SAAS,CAAC,YADM,CAAC,GAAG,CAAC,EAAO,SAAS,CAAC,MAAM,sBAAsB,CAAC,OAAQ,IAAM,EAAQ,CAAC,IAAI,0BAA0B,OAAO,EAAO,IAAI,SAAS,MAAM,KAAK,WAAW,YAAY,4BAA4B,QAAQ,SAAS,EAAS,CAAC,EAAU,EAAS,oBAAoB,EACzX,MAAM,CAAC,MAAM,UAAU,CAAC,CAAW,IAAI,EAAO,SAAS,EAAQ,CAAK,MAAM,EAAwD,MAAM,CAAC,UAAU,GAAG,QAAQ,YAAY,aAAa,GAAG,WAAW,OAAO,MAAM,OAAO,OAAO,OAAO,MAAM,cAAc,WAAW,IAAI,WAAW,SAAS,OAAO,UAAU,QAAQ,QAAQ,OAAO,OAAO,UAAU,8BAA8B,WAAW,gBAAgB,CAAC,YAAY,GAAG,CAAC,EAAE,cAAc,MAAM,UAAU,eAAgB,UAAU,GAAG,CAAC,EAAE,cAAc,MAAM,UAAU,YAAa,aAAa,GAAG,CAAC,EAAE,cAAc,MAAM,UAAU,YAAa,SAAS,QAAQ,IAAS,CAAC,sBAD7jB"}