3. Initiate Payment

UPI Intent flow

UPI Intent flow is for merchants who wants to quickly provide UPI Intent functionality using Cashfree's mobile SDK. In this flow, SDK provides a pre-built native Android screen to facilitate a quick integration with our payment gateway. Your customers will see a list of UPI apps installed in their phone which they can select to initiate payment.

Refer here for detailed steps on how to setup UPI Intent flow.

Web Checkout flow

Web checkout flow is the standard payment flow similar to Drop flow for collection payments using the Cashfree payment gateway's Android SDK. In this flow, SDK provides a webview based checkout implementation to facilitate a quick integration with our payment gateway. Your customers can fill in the necessary details in the web page and complete the payment.

This mode also handles all the business logic and UI components to make the payment smooth and easy to use.

We have added this mode for giving access to some features which are only available in the web checkout flow now.

Refer here for detailed steps on how to setup Web Checkout flow.

Initiate payment in test/prod environment

πŸ“˜

To initiate payment in SDK, CFSession object needs to be created as explained in detail in each of the checkout flows mentioned above.
To create test transaction use test API keys in Create Order step and for live transaction in prod, use prod API keys while creating the order and then use that payment_session_id received in response to initiate the payment.
This environment also needs to be set in this session object as Sandbox/Production.


Subscribe to Developer Updates