In this article we will see how the network communication happens between CC avenue and Kartify.
When we place the order, we send payment information to CC avenue. CC avenue then deducts the amount from customer’s account and through call back send us back a success or failure response depending on the transaction.
If Response is ‘success’ -> Order id is generated and the order status becomes processing or pending. If this is FYND’s order, we will hit the confirm payment api of FYND.
If Response is ‘Failed’ or ‘aborted’ or something similar -> Order id is created but the status would be failed or missing. If payment is not debited from the account the status would be failed and If payment is deducted, status would be missing. For such orders, we might get the cc avenue payment confirmation webhook. After which, the order status would be changed. The webhook url for this can be setup in the cc avenue dashboard by going to the dynamic event notification tab from Setting tab at the top. The url to be entered in Order status echo url section.
To ensure that no customer whose payment was deducted is in limbo, we again use cc avenue’s order lookup api to look for any order for which the payment was deducted but the order is still in Missing or failed state.
CC AVENUE INTEGRATION IN KARTIFY
Step 1 -> Go to kartify Admin panel.
Step 2-> Extensions -> Extensions -> Payment
Step 3 -> Search for CC avenue Payment gateway option.
Step 4 -> Enter Merchant ID, Access code and working key provided by CC avenue.