Magic Checkout

Integrate Razorpay Magic Checkout to help your users to save their addresses and payment details at checkout. The customers can reuse the details for repeat purchases and make quick transactions.


Use Magic Checkout to help customers complete prepaid and cash-on-delivery (COD) transactions on your website/app. It also helps reduce your COD RTOs by blocking cash on delivery options based on the customer’s shopping history and address quality.

Customers can add and securely save their addresses and preferred payment details at checkout as a one-time activity. They can then re-use these details while making repeat payments across any website in the Razorpay network. Also, you can run promotions efficiently by providing coupon-based discounts to your customers.

Watch this video to know more about Magic Checkout:

Feature Request

This is an on-demand feature. Please fill out the

to get this feature activated on your Razorpay account.

Feature Availability

At present, this feature is available only on Razorpay Standard Checkout on

, Razorpay and integrations.

You can use one or more combinations of these features to meet your unique business use case.

  • Offer Cash on Delivery
    Accept COD orders in a single checkout interface. This feature supports:

    • Validation of customer address and past shopping behaviour to prevent fraud and reduce RTO costs.
    • Any additional charges that you might want to charge your customers for COD payments.
  • Save Customer Addresses
    Your customers can add and save multiple shipping addresses on checkout. Razorpay also validates the ZIP codes to ensure that the address is serviceable.

  • Run Promotions using Coupon Codes
    You can run promotions by providing discounts using coupon codes. Customers can select their preferred coupon codes and apply those on checkout to avail discounts.

    Handy Tips

    You can reuse coupons from your existing system/WooCommerce.

  • Faster checkout experience
    Customers can securely save their addresses and use them for repeat transactions, thus leading to lesser clicks and smoother checkout.

  • Increased conversions
    Frictionless checkout experience reduces cart abandonment rates and increases sales.

  • Eliminates the need for multiple payment gateways
    You do not have to integrate with multiple payment gateways as Magic Checkout allows you to process prepaid and cash-on-delivery orders.

  • Reduced RTOs

    • Prevent customers with past RTO behaviour from placing COD orders. Filter out COD orders with gibberish/incomplete addresses.
    • You can manually review potential RTO orders and decide whether to provide customers COD option based on the insights we provide.

  • Create a

    .

  • on the Razorpay Dashboard.

    Handy Tips

    The test mode is a simulation mode that you can use to test your integration flow. Your customers will not be able to make payments in this mode. When your integration is complete, switch to live mode and generate live mode API keys. Replace test mode keys with live mode keys in the integration to accept payments from customers.

  1. Enable the Magic Checkout feature for your Razorpay account.
  2. If you want to provide Cash on Delivery to your customers, enable the COD payment method.
  3. If you are integrating Magic Checkout on your , create the coupons and shipping info webhook URLs on your server and pass those to Razorpay.
  4. Create the order using our and send the order_id to Razorpay Checkout.
    Handy Tips
    This step is not needed if you are using our Magic Checkout WooCommerce plugin.
  5. The customer clicks the pay button to open the Razorpay Checkout pop-up page. Based on the feature you enable:
    • Coupon Code: The customer can enter coupon codes generated at your end and avail discounts.
    • Shipping Address: The customer is asked to enter their shipping and billing addresses or select from existing saved addresses. In case of a new address, the zipcode is verified in the background to determine whether COD should be displayed to the customer. Shipping charges will be applied based on your configuration.
    • Cash on Delivery: The customer is shown COD as a payment method, the COD charges and the associated shipping charges. Cash on delivery charges will be applied based on your configuration.
  6. The customer provides the necessary details, reviews the order summary and confirms the order.
  7. Razorpay sends all the customer and order details to you via our APIs.

Handy Tips

Try the magic checkout flow using the

.