Cashfree Subscriptions - Seamless
Accept subscription-based payments seamlessly within your
website or app using Cashfree’s APIs.
To use this API
integration, the
S2S flag
must be enabled for your account.
To enable
Card Payments, ensure the PCI DSS flag is active.
1. Setup
Select the environment and fill the API Keys (App ID and Secret Key) to get started. Read Docs
Click here to try with sample App ID and Secret Key
2. Create Subscription
To initiate a subscription, the merchant must first create a
subscription in the Cashfree system.
Use
subscription_id,
from the generated response to proceed further.
Read Docs
Merchants can configure webhooks from the
dashboard
and to know more about webhooks
click here.
Response of the API will appear here.
Set environment, your app id and your secret
key
3. Raise a charge / Create an auth
Use this API to create an auth or raise a charge against the created subscription. For the first subscription, create an auth request. Subsequent recurring charges can be done using raise charge. Read Docs
Response of the API will appear
here.
Set environment, your app id and your
secret key
4. Fetch Subscription
Once payment is attempted, Customer will be redirected to
return_url provided in Create Subscription API (Step 2).
Merchant receives the data via a form POST to the return
URL. Use the API below to fetch status of the authorization
using subscriptionId in the form data, analyze
the API response and display the final payment status to the
customer.
Read Docs