RazorPay Payment Flow: Detailed Initialization

At the time the user selects "Proceed to Pay," a separate screen is initialized on the ENS end. This initialization requires specific parameters to determine the source of the purchase (Cart or Buy Now) and prepare for RazorPay integration.

Scenario 1: Payment via Shopping Cart (Cart Flow)

This scenario is used when the user is checking out items previously added to their cart.

Initialization Parameters Sent to ENS:

API Calls for Details:

Parameter Format Example (Internal Call):

userId=xxxx&addressId=yyyy&orderId=null
Key Action: Only the Cart API will be called in this case, as the product list and final payment total are derived from the user's current shopping cart.

Scenario 2: Direct Purchase (Buy Now Flow)

This scenario is used when the user bypasses the cart and initiates a direct purchase of a single item.

Initialization Parameters Sent to ENS:

API Calls for Details:

Parameter Format Example (Internal Call):

userId=xxxx&addressId=yyyy&orderId=zzzz

API Reference

API Purpose Example Endpoint
Cart API Fetches product and payment details from the user's active shopping cart. https://ht.myindiabazar.com/clientApis/v2/cart/1000104201
Address API Retrieves the user's saved delivery addresses. https://ht.myindiabazar.com/clientApis/v1/delivery_address?userId=1000104201
Item Details API Fetches specific details for a single product item. /protocol/item-details?id=1000104201