VirtueMart Forum

VirtueMart 1.1.x [ Old version - no longer supported ] => Payment VM 1.1 => Authorize.net VM 1 => Topic started by: marthirial on October 02, 2009, 02:26:16 am

Title: Authorize.net decline card error NOT displaying
Post by: marthirial on October 02, 2009, 02:26:16 am
VM 1.1.3
Joomla! 1.5.9

Step 3 of 4. Select payment method.

If the credit card, security code or type of card is invalid, an error is supposed to show: Error: The Credit Card Number entered is not valid.

In my case, this error is not showing.  Anybody knows which files should I check to find the echo that prints this error?

Thanks a lot.
Title: Re: Authorize.net decline card error NOT displaying
Post by: marthirial on October 24, 2009, 00:33:30 am
I have to correct: No error displays in the credit card validation.

Even if the credit card is empty, it shows no error, it just returns to the same page.

Anybody knows where is the error message generated and I am not referring to the language file, but the actual code.
Title: Re: Authorize.net decline card error NOT displaying
Post by: marthirial on October 24, 2009, 02:40:59 am
$50 through Paypal for your time helping me figure this out.

There was some customization done to the checkout process, nothing related with processing (still uses Authorize.net) only layout. 

The alerts and errors are visible in debug mode.  I have traced the function getErrorField( $msg ) but it will not show the error.

Thanks
Title: Re: Authorize.net decline card error NOT displaying
Post by: Don Hays on November 07, 2009, 02:29:24 am
Did you ever figure this out? I'm running into the same problem.
Title: Re: Authorize.net decline card error NOT displaying
Post by: RelativeDesign on November 19, 2009, 07:53:27 am
I was experiencing the same issue. In my case it turned out to be a bug with the logging mechanism that prints the error message for the user.

Here's how to reproduce this particular error:
1) Navigate to the VirtueMart Administration Configuration screen : http://<yourdomain>/administrator/index.php?page=admin.show_cfg&option=com_virtuemart
2) Scroll to the bottom and make sure "Debug" is not checked BUT "Limit by IP address" is checked and put a bogus IP in the "Client IP address" field, such as 1.1.1.1.
3) Apply changes
4) Attempt to make a payment using an invalid Credit Card, the screen should refresh and there will not be an error message.

Basically, if "Limit by IP address" is enabled and your IP doesn't match the one in the "Client IP address" field then the logger will throw out all messages.

To fix this open /administrator/components/com_virtuemart/classes/Log/display.php and change this line (119 on my system):

Code: [Select]
if((VM_DEBUG_IP_ENABLED == '1') && (strcmp($_SERVER['REMOTE_ADDR'], VM_DEBUG_IP_ADDRESS) != 0))

To:

Code: [Select]
if((VM_DEBUG_IP_ENABLED == '1') && (strcmp($_SERVER['REMOTE_ADDR'], VM_DEBUG_IP_ADDRESS) != 0) && $priority == PEAR_LOG_DEBUG)

Best Regards,
Jerret Kinsman
Title: Re: Authorize.net decline card error NOT displaying
Post by: RelativeDesign on November 19, 2009, 07:56:54 am
FYI, I went to submit a bug report and someone else already had: http://dev.virtuemart.net/cb/issue/2751?d-1332617-p=1&d-1332617-o=2&d-1332617-s=2
Title: Re: Authorize.net decline card error NOT displaying
Post by: sawalsh07 on December 11, 2009, 22:57:59 pm
I'm still having this problem.  Implemented that fix proposed by RelativeDesign, but it doesn't make a difference.  I've tried with and without the IP box checked.  I still get no errors whatsoever, whether for invalid CC# or on step 4; no authorize.net error response codes are shown.  All of the errors do show up in my logs!

Joomla 1.5.14 - VM 1.1.3
Title: Re: Authorize.net decline card error NOT displaying
Post by: cboles on July 27, 2010, 02:42:18 am
I am also in the same boat. As the above posters. The error messaging system is broken somewhere, but I can't figure out where... Has anyone figured this out yet?
Title: Re: Authorize.net decline card error NOT displaying
Post by: tblueweb on November 18, 2010, 23:13:10 pm
Thanks for the pointers. Even though I had debug off I had limit still on. Surely a bug. I would have thought fixed in 1.1.5.

Thanks
Title: Re: Authorize.net decline card error NOT displaying
Post by: James Schwartz on January 06, 2011, 23:55:46 pm
I'm having this problem, too.
Title: Re: Authorize.net decline card error NOT displaying
Post by: cboles on October 13, 2011, 13:09:37 pm
I'm also having this problem, and it is driving me crazy:

* I have the debug by IP address fixes mentioned above
* I can see the errors in the file logs, but they are not displayed
* Non-VirtueMart originating error messages such as login errors display fine, so I know the template is OK
* I can use default templates, or custom ones, the result is the same (nothing displayed)
* All templates have <jdoc:include type="message" /> in them
* To the degree I can debug things, the error messages seem to be there, but following the error display logic is quite difficult.

Any find a solution to this?