Question: eg. JBB Inc. Headquarters 20 West RiverCenter Blvd Covington KY 41011 USA

Answer: 
**The Error code 10002 means that Access code or URL not valid so request you to confirm that you are posting the Access code value to CCAvenue and also confirm that the request URL posting to CCAvenue has to be the same as the registered URL with us, as we are having the URL Validation at our end.** 

The post action URL must be <https://secure.ccavenue.com/transaction/transaction.do?command=initiateTransaction> 

Kindly confirm that you're passing the correct API keys in the integration kit.  

We would like to inform you that the API keys that are generated in your account, are for the live website URL and live server (i.e. secure.ccavenue.com). Thus, if we receive any request other that the website URL, (e.g. Local host / sub-domain), or for the test server (i.e. <https://test.ccavenue.com/transaction/transaction.do?command=initiateTransaction>), you will get the merchant authentication failed error. 

We request you to kindly check at your end.
**I was having same error.**

*Note below points*

1. whitelist your **IP** or **Domain** - ask ccavenue care, they will do whitelist it.
2. it will work default in live envirement for URL `https://secure.ccavenue.com/xyz`
3. for development or test enrolment we need to ask ccavenue to **enable** our merchant id(need to give our merchant id) **for test environment** for URL `https://test.ccavenue.com/xyz`

Once it enable, then it will work. also double check your merchant\_id and access\_code too.