Requirements
- Create a Cashfree Merchant Account.
- Log in to the merchant dashboard and generate test keys from Cashfree Dashboard.
- Generate API Keys - Client ID & Secret Key.
Step 1: Create a Plan
API Documentation: Create PlanStep 2: Create Subscription
API Documentation: Create SubscriptionStep 3: Initiate an Auth
Use the subscription_session_id received in the response of create subscription to initiate the subscription auth checkout. Refer to below code module to integrate :-- Take the subscription_session_id and paste it in the codepen link and click on submit.

- You will be redirected to the subscription checkout page.

- Choose the payment mode you want to setup the subscription and submit. In case of sandbox you will be asked to simulate the payment.

- You will be redirected to the return url post the transaction is completed.