This section explains the APIs that are used for creating seamless subscriptions. Seamless Subscription allows you to provide your own payment experience to your customers. With this, you can collect all payment details on your webpage and safely send them to Cashfree Payments for processing. The authLink received in the response can be used to redirect the customer to the 2FA page of the issuer/destination bank.
To build a seamless subscription flow for your customers, follow the steps below:
- Create Plan - The first step is to create a plan. Plans are a prerequisite to create a subscription.
- Create Subscription - Once you have created a plan, the next step is to create a subscription. You can charge your customers periodically (periodic) or whenever required (on-demand) for a subscription.
- Create Authorisation Request - Now that you have created a subscription, the next step is to create an authorisation request for the subscription created in the previous step.
- Get Authorisation Status - You can check the status of an authorisation request using this API.
The Create Auth and Get Auth APIs are applicable only for subscriptions created using the Create Seamless Subscription API.
To try the seamless checkout flow, we have provided you two APIs. You can try them out in the test environment.
The Update Authorisation Status and Update Charge Status APIs are applicable only in the test environment. Actions that happen in the test environment have no consequences in the production environment.