Magic Checkout is Razorpay’s one-click checkout for India: the customer’s address, your shipping methods, your coupons and optional cash on delivery are handled in the Razorpay window, without your checkout page.
Before you start #
- Magic Checkout must be enabled for your Razorpay account (ask Razorpay). Without it, the buttons open Razorpay’s standard checkout instead.
- Your store currency must be INR.
Turn it on #
- Open WooCommerce → SutraPay for Razorpay → Settings → Magic Checkout and tick Magic Checkout.
- Under Magic Checkout buttons choose where the button appears: Product page (“Buy now”), Cart page and Mini-cart.
- Optionally tick Cash on delivery and set a Cash on delivery fee (0 for none).
- In the Razorpay Dashboard go to Magic Checkout → Platform Setup (custom platform) and add the three URLs shown on the Magic Checkout panel: shipping info, get promotions and apply promotion.
- If Razorpay signs those requests for your account, paste the secret into Magic Checkout signing secret (optional): unsigned requests are then refused.
Coupons #
Only coupons you choose appear in Magic Checkout: edit the coupon and tick Razorpay Magic Checkout (“List this coupon in Magic Checkout and allow it to be applied there”). Your usual coupon rules still apply.
What happens to the order #
The button creates a pending order for exactly what the customer chose. When they pay, the address, shipping line, coupons and any cash on delivery fee are copied to the order and it is marked paid. A cash on delivery order goes to Processing with a note saying how much to collect. Subscription products and free carts use the normal checkout.

