Zen Cart Logo
Forums / Built-in Shipping and Payment Modules / Ajax error when processing credit card

Ajax error when processing credit card

Views: 1,748

Results 1 to 6 of 6
3 Jun 2015, 2:43 AM
#1
lruskauff avatar

lruskauff

Totally Zenned

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

Ajax error when processing credit card

I recently upgraded to 1.5.4 from 1.5.1.

I forgot to test credit card payments before I went live (I did test paypal). Unfortunately it isnt working. When (as a customer) I hit the continue button to confirm my order, I get:

An unknown response null: :text/html; charset=utf-8: :SyntaxError: JSON.parse: unexpected character at line 4 column 1 of the JSON data was received while processing an ajax call. The action you requested could not be completed.

I am not sure where to look. I use the Authorize.net (AIM) module.

Any help would be great.

Linda

3 Jun 2015, 3:28 AM
#2
lruskauff avatar

lruskauff

Totally Zenned

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

Re: Ajax error when processing credit card

Update: If I put Authorize.net(AIM) into testing mode and use one of the acceptable cc numbers given, there is no error.
If I put Authorize.net(AIM) into testing mode and use a made up number, there is no error.
I am trying to determine how far the program makes it before giving it that error.

         If I put in a real number in production mode and use one of my credit cards (but it doesn't match test user) it goes thru and comes back with the appropriate error from authorize that it couldn't be process.

Does zencart do any pre-processing of these numbers before it goes to authorize.net? Like maybe count the number of numbers???

22 Jun 2015, 10:57 PM
#3
whitebear avatar

whitebear

New Zenner

Join Date:
Feb 2011
Posts:
33
Plugin Contributions:
0

Re: Ajax error when processing credit card

lruskauff:

Update: If I put Authorize.net(AIM) into testing mode and use one of the acceptable cc numbers given, there is no error.
If I put Authorize.net(AIM) into testing mode and use a made up number, there is no error.
I am trying to determine how far the program makes it before giving it that error.

         If I put in a real number in production mode and use one of my credit cards (but it doesn't match test user) it goes thru and comes back with the appropriate error from authorize that it couldn't be process.

Does zencart do any pre-processing of these numbers before it goes to authorize.net? Like maybe count the number of numbers???

I'm getting the same error if I or a customer mis-types in their CC number incorrectly

22 Jun 2015, 11:05 PM
#4
lruskauff avatar

lruskauff

Totally Zenned

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

Re: Ajax error when processing credit card

I forgot the I posted this here. I contacted my template developer and she had me move one of my php files. What template are you using? Also, what is your site? I have to go hunt down my email to see if I can find which file I move :)

22 Jun 2015, 11:14 PM
#5
whitebear avatar

whitebear

New Zenner

Join Date:
Feb 2011
Posts:
33
Plugin Contributions:
0

Re: Ajax error when processing credit card

Responsive Sheffield Blue v2.0

23 Jun 2015, 4:23 AM
#6
lruskauff avatar

lruskauff

Totally Zenned

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

Re: Ajax error when processing credit card

If you switch your template back to the default template, you can test to see whether it is in the template or not. If it is I would check the Responsive Sheffield Blue forum. I searched my email but unfortunately I don't have it. I was having outlook problems and lost a lot of old email. You might want to post there too because I think Anne checks it more often.

Linda