Razorpay in Next.js: Standard Checkout first, then the modal inside your own checkout

If you want Razorpay in a Next.js app, use Standard Checkout: a Server Action creates the order with the razorpay Node SDK, the browser loads checkout.js and opens Razorpay's own modal with the order id, and your server checks razorpay_signature before you mark anything paid. The modal is Razorpay's page, so you can't restyle what's inside it. This page shows the whole flow, the theme options you do get, and how to wrap the modal in your own animated checkout.

Receipt Morph Checkout, preview

By buying you agree to the Terms.

Ready forCursorv0Lovableshadcn CLI

Full product pageReact · Tailwind · TypeScript