Handy TipsRazorpay Magic Checkout supports Cash on Delivery (COD) by default. For a simplified experience without the address section, use this flow that directly opens the payment page. Both flows support COD as a payment method.
Prerequisites
- Create a Razorpay account.
- Generate API Keys from the Dashboard. To go live with the integration and start accepting real payments, generate Live Mode API Keys and replace them in the integration.
- Integrate with Razorpay Magic Checkout:
Integration Steps
Follow the integration steps given below:-
Use your existing Magic Checkout integration. While configuring the checkout options, pass the
show_addressparameter as shown below to control the visibility of the address section:jsonshow_address:booleanDetermines whether the shipping address section appears on the Checkout page. Possible valuestrue(default): Show the address form.
false: Hide the address form.
Handy TipsMagic Checkout supports Cash on Delivery (COD) by default and the checkout flow includes an address section. Use the
show_address parameter to remove this step and maintain a simplified checkout experience.- Cash on Delivery appears as one of the available payment methods on the Checkout interface. Customers can select COD and confirm the order.