Here are the runtime errors I get in step two of the checkout.
Here are the runtime errors I get in step two of the checkout.
Last edited by scottb; 5 Jan 2007 at 08:52 PM. Reason: Broken image
What happens if you turn off your debugging in your browser?
Linda McGrath
If you have to think ... you haven't been zenned ...
Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!
The transactions go through fine with debugging turned off. I always run my production computers with several debugging tools active.
Now how do I get rid of this from step 2 of the check-out process?
MODULE_PAYMENT_AUTHORIZENET_AIM_TEXT_POPUP_CVV_LINK
See above error jpgs
Last edited by scottb; 6 Jan 2007 at 04:00 PM.
That is a constant, defined in the language file:MODULE_PAYMENT_AUTHORIZENET_AIM_TEXT_POPUP_CVV_LINK
/includes/languages/english/modules/payment/authorizenet_aim.php
I believe that entry was added for v1.3.7 ... which is likely why you're not seeing it, since in your case you started using this code to fix a problem -- before 1.3.7 was even released.Code:define('MODULE_PAYMENT_AUTHORIZENET_AIM_TEXT_POPUP_CVV_LINK', 'What\'s this?');
.
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.
That define line does not exist in my /includes/languages/english/modules/payment/authorizenet_aim.php file
I am using 1.3.6
Last edited by scottb; 8 Jan 2007 at 04:53 PM. Reason: Add info
It does exist here
/includes/modules/payment/authorizenet_aim.php
Line #175 : 'field' => zen_draw_input_field('authorizenet_aim_cc_cvv', '', 'size="4", maxlength="4"' . ' id="'.$this->code.'-cc-cvv"' . $onFocus) . ' ' . '<a href="javascriptopupWindow(\'' . zen_href_link(FILENAME_POPUP_CVV_HELP) . '\')">' . MODULE_PAYMENT_AUTHORIZENET_AIM_TEXT_POPUP_CVV_LINK . '</a>',
But it breaks the checkout if I touch the line.
Thank you Drbyte for this fix. We installed it last month when it was discovered that single quotes returned from authorize.net in the city feild caused errors. Since the install, orders come through fine...I thought everthing was good until we started getting calls from customers not able to use their Amex card. After looking into the issue, we discovered that we haven't had any amex transactions since installing this upgrade. I have done some homework to pinpoint the problem, and here is what I found out:
- We have processed many amex cards before this update
- I can still process Amex through the virtual terminal on Auth.net
- My processesor has confirmed that everything is still set up correctly
- I also compared my installed file with the one in your zip file, and it is an exact match.
- To clarify, it's: @version $Id: authorizenet_aim.php 5534 2007-01-05 10:21:51Z drbyte $
- The error that I receive after entering an amex number is: The credit card number starting with xxxx was not entered correctly, or we do not accept that kind of card. Please try again or use another credit card.
Visa & MC work perfectly, just Amex is the issue.
FYI, AIM is the only payment module I have enabled.
I looked through the code and compared the changes with the original...unfortunately I am not very good with php (pretty new to zc too) and nothing jumped out at me as a source for the problem.
Do you have any suggestions? Any help is much appreciated, I need to get this running smoothly again...
FYI, I'll be adding Discover after Amex is back up and running, and finally, I plan to add Paypal as an alternative method of payment (but not until AIM is solid).
Thanks!!
1. Do you have Amex enabled in Admin->Configuration->Credit Cards ?
2. The 'we don't accept that kind of card' message is a result of the card number-validation failing. Credit Card number-validations happen via /includes/classes/cc_validation.php. Amex rules are defined there along with all the other card types. Have you changed that file at all ? The one that comes with v.1.3.7 / v1.3.7.1 is the most current.
The rule is: ereg('^3[47][0-9]{13}$', $number) ... which means: starts with 34 or 37 and has 13 more digits.
What pattern is the amex number you were trying?
Last edited by DrByte; 13 Sep 2007 at 05:25 PM. Reason: fixed amex formula
.
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.
Well...that's why you're the doctor!
Somehow Amex was turned off from admin. I had someone helping me, they must have done that when they installed the upgrade...probably for testing & forgot to turn back on. Anyway, I just put an order through, so its golden.
One question though...Amex (at least mine) has 15 digits, not 13...I guess the reg exp checks for the first 2 digits and counts the rest?
No biggie, because my site is working right now - just the curiousity factor.
Thanks again DrByte!