This is a tutorial to integrate CCAvenue Payment gateway to your website. Please follow the steps carefully for proper integration.
Example: If your localhost URL is youhttp://localhost:55181/
should have Access code & working key for this domain, not your main domain which you're using for production. Many people use to forget this. If you whitelisted localhost:1234 and if you're using localhost:1235 or some other port number will not work. Please make sure the testing URL matches your CCAVenue details. Please find the screenshot below for more details.
Also, I have attached working copy of the Node.js integration kit here: CCAvenue-NodeJs-IntegrationKit
nonseamless
and open it in any of your favorite editors. I prefer VSCode. Open the project path in command prompt in windows | bash in mac os. Install the dependencies using the following command npm install
This command will install all the dependencies for the project to be up and running. You will find a new folder.node_modules
ccavRequestHandler.js
replace with your working key and access code. 2. ccavResponseHandler.js
- replace with your working key. 3. dataFrom.html
- replace the merchant id & success and redirect URL to your localhost URL.Thanks all, you are ready to collect payment on your website.
node run_node.js
which will run the node server from the file run_node.js
All the best :) For any clarification please write your comments below
Aravin