Configure Cashfree Payment Gateway
Cashfree is a versatile payment platform offering secure transactions. Integrating Cashfree with Learnyst streamlines payment processing for online courses.
Following the above steps, we can easily integrate Cashfree payment gateway for Learnyst:
Create and Configure Cashfree Account:- Visit the Cashfree website and create an account to complete your profile.
- Once logged in, navigate to the Dashboard screen.
- Click on Developers in the navigation header.

- Under the Payment Gateway section, select API keys and click on Generate API Keys which will help establish secure communication between your platform and Cashfree's servers for processing payment transactions.

- You can view the App ID and secret key provided.

- To access the secret key, click on the three dots icon and then select View API Key. You also have the option to download the details for future reference.


Integrating Cashfree into Learnyst:
- Navigate to the School settings > payment gateway settings in your Learnyst account.
- Click Add Payment Gateway, select Cashfree and click Save.

- Input the App ID and Secret Key obtained from Cashfree.

-
Set Up Webhook
Webhooks in Cashfree provide instant notifications about key events, such as successful payments, directly to your preferred platform. This helps streamline payment management.
- Navigate back to your Cashfree Merchant Dashboard.
- Go to Payment Gateway → Developers.
- Select Webhooks.
- Click Add Webhook Endpoint.
- Enter the following webhook URL:
https://api.learnyst.com/learner/v7/webhook/cashfree_webhook- Select the appropriate Webhook Version.
- Click Test to check whether the endpoint is responding.
- Select the required payment event:
PAYMENT_SUCCESS- Click Add Webhook.
Note: You can refer to the video below for help configuring the webhook.
Link: https://youtu.be/H1k1T0QudxE?si=6K-v2AJR_CTyI2t2 - Go back to Learnyst Admin dashboard and select publish and click on Save to publish the Payment Gateway.
