To integrate Razorpay with Webflow, you'll need to manually embed Razorpay's checkout system using custom code, since Webflow does not have native integrations for Razorpay.
<button id="rzp-button1">Pay Now</button><script src="https://checkout.razorpay.com/v1/checkout.js"></script><script> var options = { "key": "YOUR_KEY_ID", // Replace with your Key ID "amount": "50000", // Amount in paise. 50000 = ₹500 "currency": "INR", "name": "Your Company", "description": "Test Transaction", "image": "https://your_logo_url", "handler": function (response){ alert('Payment successful. Payment ID: ' + response.razorpay_payment_id); }, "prefill": { "name": "Your Name", "email": "test@example.com", "contact": "9999999999" }, "theme": { "color": "#3399cc" } }; var rzp1 = new Razorpay(options); document.getElementById('rzp-button1').onclick = function(e){ rzp1.open(); e.preventDefault(); }</script>
amount: "{{wf {"path":"price"} }}"
).To use Razorpay in Webflow, embed Razorpay’s checkout.js manually using Webflow’s Embed element, replace key values with your own, and optionally connect CMS fields. For advanced features like post-payment validation, use external services or a server-based webhook handler.