CCAvenue Payment Gateway Integration Guide | Developer Documentation
CCAvenue Payment Gateway Integration Guide
Updated: Dec 10, 2025
The purpose of this document is to lay down the payment integration with CCAvenue that is required for a merchant (or BSP) that has implemented a chatbot using WhatsApp Business APIs and needs to accept payments from WhatsApp users.
This document outlines the necessary APIs that must be integrated and how the integration works in conjunction with the WhatsApp Business API integration. While not a comprehensive guide, it serves as a general overview to assist in understanding the payment gateway integration process. Any specific or unique details related to the payment gateway must be determined by the merchant (or BSP).
In terms of integrating with the WA P2M product, this document covers the requests and responses highlighted in red within the flow diagram.

CCAvenue integration with WhatsApp Payments
Setup
Initiate Payment API
POSThttps://secure.ccavenue.com/transaction.doRequest
curl -X POST -d 'card_name=UPI&order_id=67314339998877¤cy=INR&payment_option=OPTUPI&card_type=UPI&merchant_id=2&amount=100.00&re direct_url=https://merchantredirecturl.com' | ||
| ||
| ||
| ||
| ||
| ||
|
Sample response from CCAvenue
{"status":"0","enc_response":"68b4c0ff090e439119f91d0ace1930973e5a2fc244b122e255170de2b412d486269678930fc2c175a64357a882854f62e5adb6d4476f629df3bb532cc5c82828258ed40b09181949c48e6b9365eabf9dc9e1acb5308f5d6776e2400e0c4ac4282afd81e3a66519b3734192062a49b51d956f93d9cebf4d49b9480ed6cbcdb5f87e50c7a3bd052dca39718738a49a5e22408a8656052fa506458ca1f904970fdf"}Decrypted Sample Response
{"errorCode":"","errorMessage":"","intentUrl":"upi://pay?pa=vpa@samplebank&pn=Infibeam Avenues Limited&tr=123123123123&am=100.0&cu=INR&mc=8299"}Parse the response
intentUrlupi_intent_linkparametersStatus webhook
Payment status
Request
POSThttps://api.ccavenue.com/apis/servlet/DoWebTrans{"orderNo":"11111111","referenceNo":"111111111111"}Parse the response
order_status