This migration guide is for merchants on version V1 or V2. Merchants using version V3 (2022-09-01) don’t need to use this as their migration guide. Please check changes from V3 here.
You’ll get payment_session_id in the response of create order (instead of order_token and payment_link)Below is the request and response you get when you create a order.Request
If you want to create a split order - create a order with Split from backend. You will get the ‘payment_session_id’ in the response of create order (instead of order_token and payment_link).Below is the request and the response when you create a order with split.
You need to initialise the variable using the Cashfree() function. There are two modes applicable for this - “sandbox” or “production”. Sandbox is used for test environment, whereas production is used for production mode.
Redirection to return_url happens the same way as before. However, format of return_url doesn’t contain order-token now.
New format https://test.cashfree.com/pgappsdemos/return.php?order_id={order_id}
New integration will require whitelisting of the domain which is used to open the checkout page. You can request for a domain whitelisting via developers>whitelisting in your merchant dashboard or submit a Support Form.
You can check step-by-step process of making whitelisting request here.
New integration only supports opening of the checkout page via the whitelisted domain. Any other domain used to open the checkout page will be blocked by Cashfree and checkout page will not open.