Author Topic: Authorize.net error  (Read 205 times)

Offline madchas

  • Newbie
  • *
  • Posts: 10
  • Karma: +0/-0
    • View Profile
Authorize.net error
« 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.




Offline abantecart

  • Administrator
  • Hero Member
  • *****
  • Posts: 4152
  • Karma: +251/-9
    • View Profile
    • Ideal Open Source Ecommerce Solution
Re: Authorize.net error
« Reply #1 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.
We need your help to build better free open source eCommerce platform for everyone.
See how you can help

Offline madchas

  • Newbie
  • *
  • Posts: 10
  • Karma: +0/-0
    • View Profile
Re: Authorize.net error
« Reply #2 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>

Offline Basara

  • Administrator
  • Hero Member
  • *****
  • Posts: 4318
  • Karma: +202/-0
    • View Profile
Re: Authorize.net error
« Reply #3 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
“Chuck Norris is so amazing.”
― Mother Teresa

Offline madchas

  • Newbie
  • *
  • Posts: 10
  • Karma: +0/-0
    • View Profile
Re: Authorize.net error
« Reply #4 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

Offline Basara

  • Administrator
  • Hero Member
  • *****
  • Posts: 4318
  • Karma: +202/-0
    • View Profile
Re: Authorize.net error
« Reply #5 on: August 20, 2019, 12:02:06 AM »
Can you generate new keys and try?
“Chuck Norris is so amazing.”
― Mother Teresa

Offline madchas

  • Newbie
  • *
  • Posts: 10
  • Karma: +0/-0
    • View Profile
Re: Authorize.net error
« Reply #6 on: August 20, 2019, 09:33:55 AM »
I've done this with 3 different sets of keys already

Offline Basara

  • Administrator
  • Hero Member
  • *****
  • Posts: 4318
  • Karma: +202/-0
    • View Profile
Re: Authorize.net error
« Reply #7 on: August 20, 2019, 09:39:22 AM »
So do you have any others errors/warnings in your AbanteCart log, browser console (storefront)?
“Chuck Norris is so amazing.”
― Mother Teresa

Offline madchas

  • Newbie
  • *
  • Posts: 10
  • Karma: +0/-0
    • View Profile
Re: Authorize.net error
« Reply #8 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

Offline Basara

  • Administrator
  • Hero Member
  • *****
  • Posts: 4318
  • Karma: +202/-0
    • View Profile
Re: Authorize.net error
« Reply #9 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
“Chuck Norris is so amazing.”
― Mother Teresa

Offline madchas

  • Newbie
  • *
  • Posts: 10
  • Karma: +0/-0
    • View Profile
Re: Authorize.net error
« Reply #10 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

Offline Basara

  • Administrator
  • Hero Member
  • *****
  • Posts: 4318
  • Karma: +202/-0
    • View Profile
Re: Authorize.net error
« Reply #11 on: August 20, 2019, 10:00:17 AM »
Please provide screenshot and website url
“Chuck Norris is so amazing.”
― Mother Teresa

Offline madchas

  • Newbie
  • *
  • Posts: 10
  • Karma: +0/-0
    • View Profile
Re: Authorize.net error
« Reply #12 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?

Offline madchas

  • Newbie
  • *
  • Posts: 10
  • Karma: +0/-0
    • View Profile
Re: Authorize.net error
« Reply #13 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

Offline llegrand

  • Hero Member
  • *****
  • Posts: 1472
  • Karma: +383/-2
    • View Profile
Re: Authorize.net error
« Reply #14 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

 

Powered by SMFPacks Social Login Mod