Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Authorize.net payment error help


lov2flyrc

Recommended Posts

I am having a problem with my authorize.net payment module, residing in checkout_payment.php I believe.

If the payment fails, like AVS error for example, the customer gets redirected back to the payment page but the error is not shown. This is very confusing for the customer as he does not know why the page was redrawn.

After the payment error happens, if you look in the browser address bar, the error can be seen... Example:

/checkout_payment.php?error_message=There+has+been+an+error+processing+your+credit+card.+Please+try+ag

ain.The+transaction+resulted+in+an+AVS+mismatch.+The+address+provided+does+not+ma

tch+billing+address+of+cardholder.%3A+27&osCsid=d50f017890bd5599b81109f9f51e3a8d

 

I cant seem to find why the error is not printed to the screen. I am posting a copy of my checkout_payment.php file, hopefully you guys might be able to find my problem...

 

<?php

/*

$Id: checkout_payment.php,v 1.113 2003/06/29 23:03:27 hpdl Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

 

require('includes/application_top.php');

 

// if the customer is not logged on, redirect them to the login page

if (!tep_session_is_registered('customer_id')) {

$navigation->set_snapshot();

tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL'));

}

 

// if there is nothing in the customers cart, redirect them to the shopping cart page

if ($cart->count_contents() < 1) {

tep_redirect(tep_href_link(FILENAME_SHOPPING_CART));

}

 

// if no shipping method has been selected, redirect the customer to the shipping method selection page

if (!tep_session_is_registered('shipping')) {

tep_redirect(tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'));

}

 

// avoid hack attempts during the checkout procedure by checking the internal cartID

if (isset($cart->cartID) && tep_session_is_registered('cartID')) {

if ($cart->cartID != $cartID) {

tep_redirect(tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'));

}

}

 

// Stock Check

if ( (STOCK_CHECK == 'true') && (STOCK_ALLOW_CHECKOUT != 'true') ) {

$products = $cart->get_products();

for ($i=0, $n=sizeof($products); $i<$n; $i++) {

if (tep_check_stock($products[$i]['id'], $products[$i]['quantity'])) {

tep_redirect(tep_href_link(FILENAME_SHOPPING_CART));

break;

}

}

}

 

// if no billing destination address was selected, use the customers own address as default

if (!tep_session_is_registered('billto')) {

tep_session_register('billto');

$billto = $customer_default_address_id;

} else {

// verify the selected billing address

$check_address_query = tep_db_query("select count(*) as total from " . TABLE_ADDRESS_BOOK . " where customers_id = '" . (int)$customer_id . "' and address_book_id = '" . (int)$billto . "'");

$check_address = tep_db_fetch_array($check_address_query);

 

if ($check_address['total'] != '1') {

$billto = $customer_default_address_id;

if (tep_session_is_registered('payment')) tep_session_unregister('payment');

}

}

 

require(DIR_WS_CLASSES . 'order.php');

$order = new order;

 

if (!tep_session_is_registered('comments')) tep_session_register('comments');

 

$total_weight = $cart->show_weight();

$total_count = $cart->count_contents();

 

// load all enabled payment modules

require(DIR_WS_CLASSES . 'payment.php');

$payment_modules = new payment;

 

require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_CHECKOUT_PAYMENT);

 

$breadcrumb->add(NAVBAR_TITLE_1, tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'));

$breadcrumb->add(NAVBAR_TITLE_2, tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL'));

?>

<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">

<html <?php echo HTML_PARAMS; ?>>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">

<title>Dreamworks Model Products</title>

<base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>">

<link rel="stylesheet" type="text/css" href="stylesheet.css">

<script language="javascript"><!--

var selected;

 

function selectRowEffect(object, buttonSelect) {

if (!selected) {

if (document.getElementById) {

selected = document.getElementById('defaultSelected');

} else {

selected = document.all['defaultSelected'];

}

}

 

if (selected) selected.className = 'moduleRow';

object.className = 'moduleRowSelected';

selected = object;

 

// one button is not an array

if (document.checkout_payment.payment[0]) {

document.checkout_payment.payment[buttonSelect].checked=true;

} else {

document.checkout_payment.payment.checked=true;

}

}

 

function rowOverEffect(object) {

if (object.className == 'moduleRow') object.className = 'moduleRowOver';

}

 

function rowOutEffect(object) {

if (object.className == 'moduleRowOver') object.className = 'moduleRow';

}

//--></script>

<?php echo $payment_modules->javascript_validation(); ?>

</head>

<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0"><center>

<!-- header //-->

<td width="792"><?php require(DIR_WS_INCLUDES . 'header.php'); ?></td>

<!-- header_eof //-->

 

<!-- body //-->

<table width="770" border="0" align="center" cellpadding="0" cellspacing="0">

<tr>

<td valign="top" width="155" style="border-right: 1px #ff9900 solid;">

<table width="150" border="0" align="right" cellpadding="0" cellspacing="0">

<!-- left_navigation //-->

<?php require(DIR_WS_INCLUDES . 'column_left.php'); ?>

<!-- left_navigation_eof //-->

</table></td>

<!-- body_text //-->

<td width="423" valign="top"><?php echo tep_draw_form('checkout_payment', tep_href_link(FILENAME_CHECKOUT_CONFIRMATION, '', 'SSL'), 'post', 'onsubmit="return check_form();"'); ?><table border="0" width="100%" cellspacing="0" cellpadding="0">

<BR><tr>

<td><table border="0" width="400" cellspacing="0" cellpadding="0" align="center">

<tr>

<td class="pageHeading"><?php echo HEADING_TITLE; ?></td>

<td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES . 'table_background_payment.gif', HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td>

</tr>

</table></td>

</tr>

<?php

if (isset($HTTP_GET_VARS['payment_error']) && is_object(${$HTTP_GET_VARS['payment_error']}) && ($error = ${$HTTP_GET_VARS['payment_error']}->get_error())) {

?>

<tr>

<td><table border="0" width="400" cellspacing="0" cellpadding="2" align="center">

<tr>

<td class="main"><b><?php echo tep_output_string_protected($error['title']); ?></b></td>

</tr>

</table></td>

</tr>

<tr>

<td><table border="0" width="400" cellspacing="1" cellpadding="2" class="infoBoxNotice">

<tr class="infoBoxNoticeContents">

<td><table border="0" width="400" cellspacing="0" cellpadding="2" align="center">

<tr>

<td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>

<td class="main" width="100%" valign="top"><?php echo tep_output_string_protected($error['error']); ?></td>

<td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>

</tr>

</table></td>

</tr>

</table></td>

</tr>

<tr>

<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>

</tr>

<?php

}

?>

<tr>

<td><table border="0" width="400" cellspacing="0" cellpadding="2" align="center">

<tr>

<td class="main"><b><?php echo TABLE_HEADING_BILLING_ADDRESS; ?></b></td>

</tr>

</table></td>

</tr>

<tr>

<td><table border="0" width="400" cellspacing="1" cellpadding="2" class="infoBox">

<tr class="infoBoxContents">

<td><table border="0" width="400" cellspacing="0" cellpadding="2" align="center">

<tr>

<td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>

<td class="main" width="50%" valign="top"><?php echo TEXT_SELECTED_BILLING_DESTINATION; ?><br><br><?php echo '<a href="' . tep_href_link(FILENAME_CHECKOUT_PAYMENT_ADDRESS, '', 'SSL') . '">' . tep_image_button('button_change_address.gif', IMAGE_BUTTON_CHANGE_ADDRESS) . '</a>'; ?></td>

<td align="right" width="50%" valign="top"><table border="0" cellspacing="0" cellpadding="2">

<tr>

<td class="main" align="center" valign="top"><b><?php echo TITLE_BILLING_ADDRESS; ?></b><br><?php echo tep_image(DIR_WS_IMAGES . 'arrow_south_east.gif'); ?></td>

<td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>

<td class="main" valign="top"><?php echo tep_address_label($customer_id, $billto, true, ' ', '<br>'); ?></td>

<td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>

</tr>

</table></td>

</tr>

</table></td>

</tr>

</table></td>

</tr>

<tr>

<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>

</tr>

<tr>

<td><table border="0" width="400" cellspacing="0" cellpadding="2" align="center">

<tr>

<td class="main"><b><?php echo TABLE_HEADING_PAYMENT_METHOD; ?></b><br>

<?php echo TEXT_CHECKOUT_CC; ?></td>

</tr>

</table></td>

</tr>

<tr>

<td><table border="0" width="400" cellspacing="1" cellpadding="2" class="infoBox">

<tr class="infoBoxContents">

<td><table border="0" width="400" cellspacing="0" cellpadding="2" align="center">

<?php

$selection = $payment_modules->selection();

 

if (sizeof($selection) > 1) {

?>

<tr>

<td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>

<td class="main" width="50%" valign="top"><?php echo TEXT_SELECT_PAYMENT_METHOD; ?></td><br>

<td class="main" width="50%" valign="top" align="right"><b><?php echo TITLE_PLEASE_SELECT; ?></b><br> <?php echo tep_image(DIR_WS_IMAGES . 'arrow_east_south.gif'); ?></td>

<td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>

</tr>

<?php

} else {

?>

<tr>

<td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>

<td class="main" width="100%" colspan="2"><?php echo TEXT_ENTER_PAYMENT_INFORMATION; ?></td>

<td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>

 

 

 

<?php

}

 

$radio_buttons = 0;

for ($i=0, $n=sizeof($selection); $i<$n; $i++) {

?>

<tr>

<td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>

<td colspan="2"><table border="0" width="100%" cellspacing="0" cellpadding="2">

<?php

if ( ($selection[$i]['id'] == $payment) || ($n == 1) ) {

echo ' <tr id="defaultSelected" class="moduleRowSelected" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="selectRowEffect(this, ' . $radio_buttons . ')">' . "\n";

} else {

echo ' <tr class="moduleRow" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="selectRowEffect(this, ' . $radio_buttons . ')">' . "\n";

}

?>

<td width="10"><span class="main"></span><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>

<td class="main" colspan="3"><b><?php echo $selection[$i]['module']; ?></b></td>

<td class="main" align="right">

<b></b>

<?php

if (sizeof($selection) > 1) {

echo tep_draw_radio_field('payment', $selection[$i]['id']);

} else {

echo tep_draw_hidden_field('payment', $selection[$i]['id']);

}

?>

</td>

<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>

</tr>

<?php

if (isset($selection[$i]['error'])) {

?>

<tr>

<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>

<td class="main" colspan="4"><?php echo $selection[$i]['error']; ?></td>

<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>

</tr>

<?php

} elseif (isset($selection[$i]['fields']) && is_array($selection[$i]['fields'])) {

?>

<tr>

<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>

<td colspan="4"><table border="0" cellspacing="0" cellpadding="2">

<?php

for ($j=0, $n2=sizeof($selection[$i]['fields']); $j<$n2; $j++) {

?>

<tr>

<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>

<td class="main"><?php echo $selection[$i]['fields'][$j]['title']; ?></td>

<td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>

<td class="main"><?php echo $selection[$i]['fields'][$j]['field']; ?></td>

<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>

</tr>

<?php

}

?>

</table></td>

<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?><span class="main"><b></b></span></td>

</tr>

<?php

}

?>

</table></td>

<td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>

</tr>

<?php

$radio_buttons++;

}

?>

</table></td>

</tr>

</table></td>

</tr>

<tr>

<td><span class="main"><b></b></span><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?><span class="main"><b></b></span></td>

</tr>

<tr>

<td><table border="0" width="400" cellspacing="0" cellpadding="2" align="center">

<tr>

<td class="main" align="center"><b><?php echo TABLE_HEADING_COMMENTS; ?></b></td>

</tr>

</table></td>

</tr>

<tr>

<td><table border="0" width="400" cellspacing="1" cellpadding="2" class="infoBox">

<tr class="infoBoxContents">

<td><table border="0" width="400" cellspacing="0" cellpadding="2" align="center">

<tr>

<td align="center"><?php echo tep_draw_textarea_field('comments', 'soft', '60', '5'); ?></td>

</tr>

</table></td>

</tr>

</table></td>

</tr>

<tr>

<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>

</tr>

<tr>

<td><table border="0" width="400" cellspacing="1" cellpadding="2" class="infoBox">

<tr class="infoBoxContents">

<td><table border="0" width="400" cellspacing="0" cellpadding="2" align="center">

<tr>

<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>

<td class="main"><b><?php echo TITLE_CONTINUE_CHECKOUT_PROCEDURE . '</b><br>' . TEXT_CONTINUE_CHECKOUT_PROCEDURE; ?></td>

<td class="main" align="right"><?php echo tep_image_submit('button_continue.gif', IMAGE_BUTTON_CONTINUE); ?></td>

<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>

</tr>

</table></td>

</tr>

</table></td>

</tr>

<tr>

<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>

</tr>

<tr>

<td><table border="0" width="400" cellspacing="0" cellpadding="0" align="center">

<tr>

<td width="25%"><table border="0" width="100%" cellspacing="0" cellpadding="0">

<tr>

<td width="50%" align="right"><?php echo tep_draw_separator('pixel_silver.gif', '1', '5'); ?></td>

<td width="50%"><?php echo tep_draw_separator('pixel_silver.gif', '100%', '1'); ?></td>

</tr>

</table></td>

<td width="25%"><table border="0" width="100%" cellspacing="0" cellpadding="0">

<tr>

<td width="50%"><?php echo tep_draw_separator('pixel_silver.gif', '100%', '1'); ?></td>

<td><?php echo tep_image(DIR_WS_IMAGES . 'checkout_bullet.gif'); ?></td>

<td width="50%"><?php echo tep_draw_separator('pixel_silver.gif', '100%', '1'); ?></td>

</tr>

</table></td>

<td width="25%"><?php echo tep_draw_separator('pixel_silver.gif', '100%', '1'); ?></td>

<td width="25%"><table border="0" width="100%" cellspacing="0" cellpadding="0">

<tr>

<td width="50%"><?php echo tep_draw_separator('pixel_silver.gif', '100%', '1'); ?></td>

<td width="50%"><?php echo tep_draw_separator('pixel_silver.gif', '1', '5'); ?></td>

</tr>

</table></td>

</tr>

<tr>

<td align="center" width="25%" class="checkoutBarFrom"><?php echo '<a href="' . tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '" class="checkoutBarFrom">' . CHECKOUT_BAR_DELIVERY . '</a>'; ?></td>

<td align="center" width="25%" class="checkoutBarCurrent"><?php echo CHECKOUT_BAR_PAYMENT; ?></td>

<td align="center" width="25%" class="checkoutBarTo"><?php echo CHECKOUT_BAR_CONFIRMATION; ?></td>

<td align="center" width="25%" class="checkoutBarTo"><?php echo CHECKOUT_BAR_FINISHED; ?></td>

</tr>

</table></td>

</tr>

</table></form></td>

<!-- body_text_eof //-->

<td width="150" valign="top" style="border-left: 1px #ff9900 solid;"><br /><table border="0" width="100%" cellspacing="0" cellpadding="0" align="left">

<!-- right_navigation //-->

<?php require(DIR_WS_INCLUDES . 'column_right.php'); ?>

<!-- right_navigation_eof //-->

</table></td>

</tr>

</table>

<!-- body_eof //-->

<td width="792" align="center">

<!-- footer //-->

<?php require(DIR_WS_INCLUDES . 'footer.php'); ?>

<!-- footer_eof //-->

</td>

</center></body>

</html>

<?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>

Link to comment
Share on other sites

has it ever worked?

 

Good question :blink: Never checked. Realized the problem when a customer called reporting he could not get his card to process.

I did recently make a authorize.net module change to a contrib that supported CCV. AuthorizeAIM I think it was?

Tried a fresh copy of checkout_payment.php and still does no show the error. Perhaps the problem is in the authorizenetaim.php file?

Link to comment
Share on other sites

Good question  :blink: Never checked. Realized the problem when a customer called reporting he could not get his card to process.

I did recently make a authorize.net module change to a contrib that supported CCV. AuthorizeAIM I think it was?

Tried a fresh copy of checkout_payment.php and still does no show the error. Perhaps the problem is in the authorizenetaim.php file?

 

 

Anyone?? :-"

Link to comment
Share on other sites

Hello

 

It seems there is a problem at osCommerce 2.2 I have installed it it works well with paypal

 

problem is that it never go to confirmation page to confirm order, and instead it go to the login page with this folowing URL Address: https://secure.authorize.net/gateway/transact.dll

 

Have reinstalled the osCommerce but with same problem at authorize.net M.A.

 

I have contacted with Authorize.net and they check our setting there they did not find any problem, said that the problem is from shopping cart

Link to comment
Share on other sites

I've been having the same problems with Authorize.net and OSC 2.2.

 

I'd rather switch to a different payment processor -- I'd love to hear some suggestions from other people -- I want this to work, which one is the easiest to get running?

Link to comment
Share on other sites

  • 2 weeks later...

The error display issue:

This is because somewhere on that page you need to echo the error message. This should do it:

 

echo $_GET['error_message'];

 

The Authorize.net Issue:

I am having it to. Would also love suggestions.

 

Thanks

Edited by bgetting
Link to comment
Share on other sites

The error display issue:

This is because somewhere on that page you need to echo the error message.  This should do it:

 

echo $_GET['error_message'];

 

The Authorize.net Issue:

I am having it to.  Would also love suggestions.

 

Thanks

 

Well, still no resolve here guys??

Where would I enter the "echo $_GET['error_message'];" to have it display the error listed in the URL?

This is what I am seeing....

 

www.domain.com/catalog/checkout_payment.php?error_message=Your+credit+card+was+declined+%282%29%3A+This+transaction+has+been+declined.&osCsid=0610ef25353997a2373dfda0b1333ab8

 

There must be a fairly simple solution to get this error to echo on the checkout page??

Link to comment
Share on other sites

  • 2 weeks later...

Add this about line 175 in chechout_payment.php after <?php } ?>

 

<?php
//credit card denial message
 if (isset($_GET['error_message'])){
	 $error = $_GET['error_message'];
?>
     <tr>
       <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
         <tr>
           <td class="main"><b>Processing Error</b></td>
         </tr>
       </table></td>
     </tr>
     <tr>
       <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBoxNotice">
         <tr class="infoBoxNoticeContents">
           <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
             <tr>
               <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
               <td class="main" width="100%" valign="top"><?php echo tep_output_string_protected($error); ?></td>
               <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
             </tr>
           </table></td>
         </tr>
       </table></td>
     </tr>
     <tr>
       <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
     </tr>
<?php
 }
?>

 

 

I have this in my code and its working just right.

Link to comment
Share on other sites

Hello

 

It seems there is a problem at osCommerce 2.2 I have installed it it works well with paypal

 

problem is that it never go to confirmation page to confirm order, and instead it go to the login page with this folowing URL Address: https://secure.authorize.net/gateway/transact.dll

 

Have reinstalled the osCommerce but with same problem at authorize.net M.A.

 

I have contacted with Authorize.net and they check our setting there they did not find any problem, said that the problem is from shopping cart

 

Has anyone solved this problem. I have the exact same problem. Please Help. All help is greatly appreciated.

 

Take care,

Jason

Link to comment
Share on other sites

  • 1 month later...

HI there, I am using the Authorize AIM on a cart for my client, prob is

when i fill in the test CC info on the checkout payment page, it goes to the following page, but then pops right back to the checkout payment page and has this as part of the url

 

error_message=The+server+cannot+connect+to+Authorize.net.++Please+check+your+cUR

L+and+server+settings.

 

hosting company says the Curl is compiled so i dont get it, and i checked with authorize and the login is correct

 

thoughts? :blink:

Link to comment
Share on other sites

lov2flyrc,

That's a transaction failure originating in your payment processor settings. You have your settings set to reject any transaction where the billing address provided by the customer does not match the records of the credit card company.

 

Tanya,

Have you installed any contributions that could have overwritten and replaced a part of the original Authorizenet files? You would get that error you described if you have done so recently.

Link to comment
Share on other sites

Hello

 

It seems there is a problem at osCommerce 2.2 I have installed it it works well with paypal

 

problem is that it never go to confirmation page to confirm order, and instead it go to the login page with this folowing URL Address: https://secure.authorize.net/gateway/transact.dll

 

Have reinstalled the osCommerce but with same problem at authorize.net M.A.

 

I have contacted with Authorize.net and they check our setting there they did not find any problem, said that the problem is from shopping cart

 

 

I am having the same problem. I think it is because the cart is designed for AIM and we are trying to use the SIM. Does anyone have any Ideas on this problem????

 

Thanks

JB

Link to comment
Share on other sites

  • 3 months later...

The URL looks correct so I would go hunting in your header.php file and make sure it is is setup to display the contents of err_message

 

Note I just posed a fix to Authorize.net 1.7b that covers a related issue if your full error message is not making it to the URL. Ie checkout_payment.php?error_message=Your card was declined with no message

Link to comment
Share on other sites

Well, still no resolve here guys??

Where would I enter the "echo $_GET['error_message'];" to have it display the error listed in the URL?

This is what I am seeing....

 

www.domain.com/catalog/checkout_payment.php?error_message=Your+credit+card+was+declined+%282%29%3A+This+transaction+has+been+declined.&osCsid=0610ef25353997a2373dfda0b1333ab8

 

There must be a fairly simple solution to get this error to echo on the checkout page??

 

The code should be in your header.php to display the error message (you may have lost it on a customizations).

Link to comment
Share on other sites

Well, still no resolve here guys??

Where would I enter the "echo $_GET['error_message'];" to have it display the error listed in the URL?

This is what I am seeing....

 

www.domain.com/catalog/checkout_payment.php?error_message=Your+credit+card+was+declined+%282%29%3A+This+transaction+has+been+declined.&osCsid=0610ef25353997a2373dfda0b1333ab8

 

There must be a fairly simple solution to get this error to echo on the checkout page??

 

The code should be in your header.php to display the error message (you may have lost it on a customization).

Link to comment
Share on other sites

I believe it's the "amp;" that is somehow concatenated to the "&" after "?" It seems that it doesn't get parsed when you post to Oscommerce but if you check your browser address bar you will see it. I fixed it by a simple str_replace in the tep_redirect() function in general.php. Let me know if it helps.

http://www.oscommerce.com/forums/index.php?showtopic=193181

 

Sam

Link to comment
Share on other sites

Hello everyone. I am struggling with the same Authorize.net error message issue.

 

I've read through the posts, but I'm still not sure what to do to rectify the problem.

 

On my site, when an order is submitted to A.net with a bad billing address (for example) the url resolves to:

 

https://secure.authorize.net/gateway/transact.dll

 

and simply displays my payment again without any errors.

 

Can anyone give a definitive answer regarding how to solve this?

 

I'm not getting any error messsages in the URL, so trying to echo the error message using GET won't work.

 

I've tried posting the code "on about line 175" of checkout_payment.php but if I add that code, I get error messages about an unexpected "{".

 

So I'm stumped. Can anyone summarize a solution for me?

 

thanks,

 

dlc

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...