KYC Links
Webhooks
Webhooks are server callbacks to your server from Cashfree payments.
Webhooks are event-based notifications that are received when a specific event related to the KYC verification occurs.
Add Webhooks
Add your webhook URL in our system for us to deliver webhook events.
Follow the instructions below to configure the webhook URL. Ensure to provide the publicly accessible HTTPS URL to your webhook endpoint.
- Once you login to the dashboard with the credentials, click Developers.
- Click Webhooks listed under the Verification Suite card.
- Click Add Webhook URL in the Developers - Verification Suite screen.
- In the Add Webhook popup, fill in the following information:
- Webhook URL - Enter the URL in this field.
- Click Test & Add Webhook.
Add Webhook
Webhook events
Event | Description |
---|---|
KYC_LINK_ACTION_PERFORMED | You will receive this event when one of the verifications is performed using the link. |
KYC_LINK_SUCCESS | You will receive this event when all the verifications are performed successfully. |
KYC_LINK_EXPIRED | You will receive this event when the link expires. |
Signature verification
Verifying the signature is mandatory before processing any response. It helps authenticate that the webhook is from Cashfree Payments.
Follow the steps to verify the signature:
- Sort the array based on keys.
- Concatenate all the values in this array and the resultant is the post data (postData).
- postData needs to be encrypted using SHA-256 and then base64 encoded.
- Verify if both the signature calculated and the signature received match.
- Proceed further only if the signatures match. If not, discard the request.
- Ensure **clientSecret **you use is from the oldest active key pair.
For example, from the webhook received, extract the data and pass it to generate HMAC function:
Java code - for reference
Was this page helpful?