Documentation Index
Fetch the complete documentation index at: https://www.cashfree.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
Before you proceed with the integration steps for Shopify or custom websites, you must activate the One Click Checkout (OCC) product on your Cashfree Payments account. To activate OCC:- Log in to the Merchant Dashboard.
- Go to Payment Gateway > PG PRODUCTS > One Click Checkout.
- Activate the product.
Integration steps
One Click Checkout is supported on Shopify and custom websites.Shopify integration
To integrate One Click Checkout on Shopify, follow the guide here.Custom websites
For custom websites, use any of our web and app checkout integrations and make the following changes:-
Order Creation Requirements: Ensure the following parameters are passed when creating an order:
cart_details: Include detailed information about the cart.one_click_checkout: Include one click checkout configuration details under the object product.
Sample cURL
-
Order Details Endpoint: This endpoint provides detailed order information, including:
- Customer Information: Details about the logged-in user.
- Shipping and Billing Addresses: Information about the recipient for whom the order was placed.
- Applied Offers: Any discounts or offers applied at checkout.
The response includes a
customer details object with information about the
logged-in user, and the shipping address object contains details about the
recipient for whom the order was placed.