If this is your first visit, check our documentation. To post, register or login.
Forums / Configuring the Zen Cart Admin / Built-in Shipping and Payment Modules / Authorize.net (AIM) - "Credit card number is required"

Authorize.net (AIM) - "Credit card number is required"

Started by swguy on 29 May 2015, 1:38 AM · Views: 2,559

Results 1 to 10 of 10
29 May 2015, 1:38 AM
#1
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,762
Plugin Contributions:
56

Post #1 by swguy

After clicking submit on the checkout confirmation page, I get:

Credit card number is required. - Your credit card could not be authorized for this reason. Please correct the information and try again or contact us for further assistance.

Sure enough, the AIM log shows

[x_card_num] => XX

which don't look too good.

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

29 May 2015, 3:13 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #2 by drbyte

The AIM module can only transmit what it successfully receives via the form submission.
Is there other ajax code interfering with the ajax used by checkout?
Is the HTML on the checkout_payment page broken due to alterations to template or by other plugins? In what ways are the any of the files in the /includes directory different than original ZC code?

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

29 May 2015, 3:20 PM
#3
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,762
Plugin Contributions:
56

Post #3 by swguy

All good questions - I will investigate. We had a successful cc run during testing with a test database, so I was thinking it might have been a bad configuration, but I am going to have to go through everything as you suggested. I haven't ever seen this specific issue before, and wondered if anyone else had.

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

30 May 2015, 10:49 AM
#4
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,762
Plugin Contributions:
56

Post #4 by swguy

Went through everything again and found no relevant changes. But when I turned off Admin-My Store-Configuration-PA-DSS Ajax Checkout, it worked. Does this give you any ideas?

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

30 May 2015, 11:17 AM
#5
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,762
Plugin Contributions:
56

Post #5 by swguy

Wild theory: the url parameter in these files

./templates/template_default/jscript/jscript_framework.php
./modules/pages/checkout_payment/jscript_main.php

does not account for the possibility that DIR_WS_CATALOG might be a subdirectory (such as "store" or "shop").

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

13 Aug 2015, 6:07 PM
#6
niccol avatar

niccol

Totally Zenned

Join Date:
Apr 2009
Posts:
2,138
Plugin Contributions:
1

Post #6 by niccol

Did you have any joy in tracking this down? I am having a similar issue with Paypal Pro on a sub-directory installation. Before I wade into the javascript it would be nice to know that someone else got there first. Here's hoping ...

Nick
iszent.com

13 Aug 2015, 7:54 PM
#7
lruskauff avatar

lruskauff

Totally Zenned

Join Date:
Sep 2008
Location:
WA
Posts:
559
Plugin Contributions:
0

Post #7 by lruskauff

Hi
I'm running 1.5.4 and until about 5 days ago was running in a subdirectory and using AIM with no problem. I also use PayPal express. I just moved out of the subdirectory for other reasons but I had no problem with either.

13 Dec 2016, 10:25 PM
#8
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,762
Plugin Contributions:
56

Post #8 by swguy

I actually just hit it again, and turned off AJAX checkout and it worked again. Not sure why.

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

14 Dec 2016, 3:51 PM
#9
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,146
Plugin Contributions:
56

Post #9 by lat9

@swguy, there are two issues at play: Make sure that you're using the /includes/templates/template_default/jscript/jscript_framework.php and /includes/classes/payment.php from the Zen Cart 1.5.5b distribution.

13 Sep 2017, 5:36 PM
#10
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,762
Plugin Contributions:
56

Post #10 by swguy

lat9:

Make sure that you're using (correct version of) the /includes/templates/template_default/jscript/jscript_framework.php and /includes/classes/payment.php

I think Cindy is right on the money here - this shouldn't happen unless you have a Frankenversion with mixed generations of files.

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.