Back to Home Page

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

  • Config
  • 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

  • Server Side
  • 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.

    In the case of an on-demand plan type, the merchant is responsible to raise a charge manually whenever required after the initial authorization. Read Docs
    Subscription Options
    Response of the API will appear here.
    Set environment, your app id and your secret key

    3. Raise a charge / Create an auth

  • Client Side
  • 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

  • Server Side
  • 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

    Response of the API will appear here.
    Set environment, your app id and your secret key
    Authorization States
    Payment Success
    Payment Failure
    Payment Incomplete
    Authorization Status will appear here once the API is triggered

    The site is built using the Brutopia theme. Get it for free here