Available in🇮🇳 India
Follow the steps below to onboard Cashfree as a payment provider.
Prerequisites
Prerequisites
- Write to your Cashfree Relationship Manager and mention that you are using Optimizer to handle sensitive card data. Request to enable the following:
- Seamless mode for your account.
- Whitelist the domain/URL
https://api.razorpay.com/.
- Copy Razorpay in the email and we will provide the supporting document from our end. Know more about the email format for Cashfree.
- To pass your unique Order ID or Receipt for every order, write to your Relationship Manager to show the
orderNoteparameter in the Cashfree Dashboard and customise report. Know more about how to send your order id to Cashfree. - On the Cashfree Dashboard, select the
v0version for payment success, pending and fail state events. - For real time sync of refund status on Optimizer, please configure refund webhooks on your Cashfree dashboard. Endpoint URL: https://api.razorpay.com/v1/callback/cashfree
Add Cashfree as a Payment Provider
To add Cashfree as a payment provider:
To add Cashfree as a payment provider:
Watch this video to see how to add Cashfree as a Payment Provider.
Steps
- Log in to your Dashboard.
- Go to the PAYMENT PRODUCTS section and click Optimizer.
- In the top-right section, click Add Provider.
- Select Cashfree in the list of gateways available and click Next.
- Enter the provider name and description and click Next.
- Enter your App ID and App secret Key.
- Select the payment methods you want to enable for Cashfree and click Submit.
Supported Payment Methods
Handy TipsCashfree supports Third-Party Validation (TPV).
Email Format for Cashfree
Follow the email format given below to communicate the [prerequisites](#prerequisites) or any other requirements to the Cashfree Account Manager:
Follow the email format given below to communicate the [prerequisites](#prerequisites) or any other requirements to the Cashfree Account Manager:
Dear
We are using “Optimizer” as a technology service provider to manage our integration with Cashfree for account
In order to use this TSP, we require certain configurations to be enabled as mentioned below:
Account Manager,We are using “Optimizer” as a technology service provider to manage our integration with Cashfree for account
<Merchant/Account ID>. In order to use this TSP, we require certain configurations to be enabled as mentioned below:
- Enable seamless mode for our account.
- Please enable the account for card, netbanking and UPI transactions.
- A list of the enabled banks for netbanking and networks for cards payments methods.
- A sample of the existing payment request and response for payments.
Send Receipt/Order ID to External Gateway
You might be generating a unique Order ID or Receipt for every order which can be passed to Cashfree via Orders API. To make your order id visible on the Cashfree Dashboard:- In Razorpay’s Orders API, use the
receiptparameter to send your unique Order ID or Receipt. - Razorpay passes this value to Cashfree in
orderNoteparameter. - Write to your Cashfree Relationship Manager to show the parameter
orderNotein the Dashboard and reports as per your use case.
Best Practices
Before routing all traffic or some traffic to a new gateway via Optimizer, the following best practices are recommended:Live and Test Mode Rules
Live and Test Mode Rules
All rules configured on live or test mode on the Razorpay Dashboard will reflect on live mode. However, credentials added on test mode will not be automatically replicated in live mode.
Sanity Test at Razorpay
Sanity Test at Razorpay
You can reach out to Razorpay for basic sanity testing of the integration. Razorpay will try a test payment of small value and ensure that the credentials are correct.
Perform Self Sanity Test
Perform Self Sanity Test
We recommend configuring a rule on live mode to route payments lesser than a set value (for example, ₹2) to the Cashfree gateway. This helps to test on production whether small value payments are being routed to Cashfree and working successfully, thus avoiding any direct impact on production traffic.To configure a rule in live mode:
- Log in to your Dashboard.
- In the left navigation, click Optimizer.
- Click +Add Rule and enter the Rule name and Description.
- Click Next and enter the following rule:
- In Parameter field, select Amount (In Rupees)
- In Select Connection field, select Less Than
- In Enter Amount field, enter the value 2 and click Next.
- Enter the value 100 in the Route field, select Cashfree in the Payment Via field, and click Next.
- Click Publish Rule.