AbanteCart Community

Shopping Cart Operations => Support => Extension Support => Topic started by: madchas on August 16, 2019, 11:44:16 AM

Title: Authorize.net error
Post by: madchas on August 16, 2019, 11:44:16 AM
I have a first time installation of AbanteCart Version 1.2.15

When testing authorize.net in sandbox I am getting this error:
×Authorize.Net: User authentication failed due to invalid authentication values.( E_WC_21 )

I get the same error in test and live mode.

My API Login ID and keys are correct, just got them from the sandbox site a did a validation check, just to be sure.

Seems to me that the extension is passing bad info, unless I am missing something.



Title: Re: Authorize.net error
Post by: abantecart on August 18, 2019, 12:53:05 PM
Welcome to AbanteCart!

This is very strange. If you copy/paste the credentials, check that you do not have any spaces or extra characters.
There might also be an issue with authorize.net sandbox. I recall having issues with sandbox in the past.

Let us know either way.
Title: Re: Authorize.net error
Post by: madchas on August 18, 2019, 01:12:42 PM
Yea, I checked for spaces.

I also know this seems to be a common problem when I read through the sandbox.

I am also getting this error (this doesn't come up right away), haven't looked to see if it's related.

 warning: AbanteCart core v.1.2.15 sizeof(): Parameter must be an array or an object that implements Countable in <b>/home/*******/******/storefront/view/default/template/pages/account/transactions.tpl</b> on line <b>32</b>
Title: Re: Authorize.net error
Post by: Basara on August 19, 2019, 12:49:34 AM
Hello.
Login to your sandbox https://sandbox.authorize.net/
After login click Test Mode
Go to Account > Security Settings > API Credentials & Keys and get you Test API Login ID, Transaction Key and Signature Key

In extension setting make sure you enable Test mode
Title: Re: Authorize.net error
Post by: madchas on August 19, 2019, 10:38:40 AM
I continue to get the same error:
×Authorize.Net: User authentication failed due to invalid authentication values.( E_WC_21 )

I've used different combinations of test and live on the ext and sandbox

test/test
test/live
live/live
live/test

Same result
Title: Re: Authorize.net error
Post by: Basara on August 20, 2019, 12:02:06 AM
Can you generate new keys and try?
Title: Re: Authorize.net error
Post by: madchas on August 20, 2019, 09:33:55 AM
I've done this with 3 different sets of keys already
Title: Re: Authorize.net error
Post by: Basara on August 20, 2019, 09:39:22 AM
So do you have any others errors/warnings in your AbanteCart log, browser console (storefront)?
Title: Re: Authorize.net error
Post by: madchas on August 20, 2019, 09:50:36 AM
no, nothing

Sometimes in the reports, it will show a sale and other times it doesn't.
I did something around 8 attempts yesterday and it shows 1 sale in the reports section
Title: Re: Authorize.net error
Post by: Basara on August 20, 2019, 09:55:56 AM
Try to contact Authorize support.
If extension works once that mean nothing wrong with it or with your credentials
Title: Re: Authorize.net error
Post by: madchas on August 20, 2019, 09:58:05 AM
It didn't work.

I got this error, which is what I always get:
×Authorize.Net: User authentication failed due to invalid authentication values.( E_WC_21 )

but the cart still shows a sale
Title: Re: Authorize.net error
Post by: Basara on August 20, 2019, 10:00:17 AM
Please provide screenshot and website url
Title: Re: Authorize.net error
Post by: madchas on August 20, 2019, 10:10:31 AM
on the sales reports, it does show these as being incomplete orders.

would that be normal, considering the error?
Title: Re: Authorize.net error
Post by: madchas on August 20, 2019, 01:18:59 PM
ok, I got tired of messing with the sandbox and took everything live.

I am using authorize.net on another site that is live and it was tested prior to going live and worked just fine.

Keeping that in mind, I used the same credit card from here ^^^^ and used it to run a live transaction in AbanteCart.

I figured it worked on the other site, should work on this one, but it doesn't.

First error I get is a decline response:
 App Error: AbanteCart core v.1.2.15 Authorize.net:array (
'error' => 'The transaction has been declined because of an AVS mismatch. The address provided does not match billing address of cardholder.',
'code' => '27',

That's telling me my address and zipcode don't match, which is bs, works fine on the other site and I haven't changed anything in my merchant account.

I also get these errors:
Trace:
#0 /home/*******/public_html/extensions/default_authorizenet/storefront/model/extension/default_authorizenet.php on line 458
#1 /home/*******/public_html/extensions/default_authorizenet/storefront/model/extension/default_authorizenet.php on line 333
#2 /home/*******/public_html/extensions/default_authorizenet/storefront/model/extension/default_authorizenet.php on line 149
#3 /home/*******/public_html/extensions/default_authorizenet/storefront/controller/responses/extension/default_authorizenet.php on line 246
#4 /home/*******/public_html/core/engine/dispatcher.php on line 293
Title: Re: Authorize.net error
Post by: llegrand on August 20, 2019, 02:58:23 PM
Two things here:

according to the error codes as defined by Authorize net check that your keys are correct (not extra spaces which sometimes happens then copying and pasting)

E_WC_21  User authentication failed due to invalid authentication values.
Either the API Login ID or Public Client Key, or both values, are incorrect. The value of apiLoginID must be same as the ID that you use to authenticate API requests. The value for clientKey can be obtained through the Authorize.Net Merchant Interface, by navigating to Account > Settings > Security Settings > General Security Settings > Manage Public Client Key.

Second thing:
AVS match requires that the address passed to Authorize Net  is a match.   Are you passing account or shipping address?  AbanteCart allows you to choose. But in either event whatever you're using has to match to the card info on file at Authorize Net
Title: Re: Authorize.net error
Post by: madchas on August 20, 2019, 03:12:59 PM
I guess you didn't actually read the post
Title: Re: Authorize.net error
Post by: llegrand on August 20, 2019, 06:00:15 PM
actually  I did read them -  that's where I got your error code.  But seemed to me that there is always the possibility  that the new site with the issue may be configured differently than your other site.   I am assuming it is also an AbanteCart -  but you didn't specify

I have many clients using Authorize net without issue,  so am assuming something within your settings or site is not correct yet.
Good Luck
I will not waste my time or yours further in try to assist
Title: Re: Authorize.net error
Post by: madchas on August 21, 2019, 09:03:32 AM
Is this warning a concern or is it normal?

9101::App Warning
Extension default_authorizenet overrides core template with responses/default_authorizenet.tpl in /home/******/public_html/core/engine/view.php on line 342
Title: Re: Authorize.net error
Post by: Basara on August 22, 2019, 09:31:26 AM
It is normal debug info