– Solution of Error E00007 “User authentication failed due to invalid authentication values.”

Hi Friends, Some days ago I integrated with CakePHP in one of my client project. having sample code for mostly all languages for different integration methods, here is link to sample code. I used Automated Recurring Billing (ARB) method, So we can handle recurring payment monthly and yearly. It is obvious while implementing this I got many issues, So I am going to talk about one of issues here and solution of it. So This error is  Error E00007 “User authentication failed due to invalid authentication values.”

While making transaction via API for ARB this error is really a general error which I think every programmer will get if he didn’t read documents carefully and setup all things correctly.

So this errors generally comes if you attempt to connect to production environment with test account(sandbox account) or attempt to connect to test environment with production account.If you have created test account by Sandbox Developer Account Creation for then while connecting to API with test account you should use following URL : and if you are using production account then you should use following URL :

So this is a common mistake that mostly every developer did while integrating via API, So always remember if you are using test account then use test api URL and if you using production account then use production api URL.

I hope this post helpful for someone. If you have any question then you can ask me anytime or post it in comment.

Also I am WordPress Developer, Freelance PHP Developer having more than 3 years of experience, So if you want to do any projects then you can contact me.

Hostgator Hosting in 1 Cent Coupon Code – “1CENTHECOUPON” (Without Quotes).