Guest Posted January 20, 2006 Posted January 20, 2006 Hello kiddos: So not another soul has to pay the price for waht happened to me tonight, here is a CLEANED UP version of how to fix the DECLINE/ERROR messages issue in LINKPOINT CONNECT 1.1 (and many other payment modules) WHILE using STS 3.0 or higher. May also work with STS below that, but it has not been tested. If you are using LinkpointConnect 1.1 and you are having problems getting your FAILED URL to work, here is what I did. A) Make sure in your linkpoincentral you have your return URL pointing to https//www.yourdomain.com/whateverdirectory/checkout_process.php . Check "URL is CGI script". To debug, leave Auto Forwarding off so you can just hit the back button and retest it without having to enter the credit card info evrytime. Turned back on when it is working B) In your sts_display_output.php file find this code: // Prepend any error/warning messages to $content if ($messageStack->size('header') > 0) { $template['content'] = $messageStack->output('header') . $template['content']; } and put this right after it: ////////Start Error Messages - Tom Wojcik if (isset($HTTP_GET_VARS['error_message']) && tep_not_null($HTTP_GET_VARS['error_message'])) { $messageStack->add('error_message', $HTTP_GET_VARS['error_message']); $template['content'] = $messageStack->output('error_message') . $template['content']; } ////// End Error Messages so it looks like: // Prepend any error/warning messages to $content if ($messageStack->size('header') > 0) { $template['content'] = $messageStack->output('header') . $template['content']; } ////////Start Error Messages - Tom Wojcik if (isset($HTTP_GET_VARS['error_message']) && tep_not_null($HTTP_GET_VARS['error_message'])) { $messageStack->add('error_message', $HTTP_GET_VARS['error_message']); $template['content'] = $messageStack->output('error_message') . $template['content']; } ////// End Error Messages This fix is credited to Tom Wojcik (whoever he is) C) IMPORTANT FOR MAC USERS!!!!!!!: And issue with copy and paste of code from browser to text editr. This was brought up by TABULA RASA "Just a note, if anybody comes up against it, there are invisible characters (3 of them), which looks like a bullet, if we copy and paste this code using a mac. The parse error says that an enexpected '{' was encountered. If you show invisibles and replace the character with space character, it solves the problem." This literary had me down for almost a whole night. So TABULA is referring to the code that was added. IF using BBEDIT, turn on the "show invisibles" and look for the symbols. Once you take them, it works like butter. KANNARY OUT!!!! Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.