Set up CCAvenue
The CCAvenue gateway takes payments on CCAvenue’s own billing page: cards, net banking, UPI and wallets. Card and bank details never reach your portal.
Before you start
Section titled “Before you start”- Keys. In CCAvenue’s M.A.R.S dashboard, open Settings → API Keys and copy the Merchant ID, the Access Code and the Working Key. The access code and working key belong to the website address they were made for: make them for your portal’s address.
- The API. ClientFence checks every payment with CCAvenue’s API. CCAvenue accepts API calls only from IP addresses it knows: ask CCAvenue to register your server’s public IP address.
- Currencies. Each invoice is charged in its own currency. Ask CCAvenue to turn on every currency you invoice in, or set Accepted Currencies to the ones your account takes.
Set it up
Section titled “Set it up”- Install CCAvenue on System → Payment Gateways and open it.
- Fill in the Merchant ID, the Live access code and the Live working key.
- Turn on Enabled and select Update Gateway.
ClientFence sends CCAvenue its own return address with each payment, so there is nothing else to set in M.A.R.S.
Test it first
Section titled “Test it first”CCAvenue’s test site needs an active merchant account: ask CCAvenue support to turn on test mode for your account and your portal’s address. Then turn on Test mode, fill in the Test access code and Test working key, and pay an invoice.
How payments are recorded
Section titled “How payments are recorded”When the client comes back from CCAvenue, ClientFence reads the order back with CCAvenue’s API and pays the invoice only when CCAvenue reports it paid, in the invoice’s currency, for the amount due. Each payment is recorded once. A payment CCAvenue still shows as Awaited waits on its transaction: ClientFence asks CCAvenue again every few minutes and pays the invoice once CCAvenue reports it paid. If the API call fails (for example, the server’s IP address is not registered), the transaction shows the error and the invoice stays unpaid: fix the cause, then process the transaction again (see Transactions).
Refunds
Section titled “Refunds”When you refund an invoice paid with CCAvenue, choose Send it back through CCAvenue (see Refunds). The refund is recorded only when CCAvenue accepts it.

