hasnut Posted April 27, 2008 Share Posted April 27, 2008 (edited) I need how the checkout_process.php will know if its Approved or not. I am using 2checkout module as base, The CC is billed but when its returend to site it goes to checkout payment page with "There has been an error processing your credit card. Please try again." this error. Can anyone help? if ($result != 'APPROVED') { $messageStack->add_session('mirapy_payment', , 'error'); $redirect_url = zen_href_link(FILENAME_MIRAPAY_PAYMENT, '', $ssl_str, true, false); } else { $redirect_url = zen_href_link(FILENAME_CHECKOUT_PROCESS, 'cID=' . $co_id, $ssl_str, true, false); } //FIREFOX FIX $redirect_url = str_replace('&', '&', $redirect_url); echo $redirect_url; ?> <body> <script type="text/javascript" language="javascript">window.location="<?php echo $redirect_url; ?>"</script> <noscript> If you are not redirected please <a href="<?php echo $redirect_url; ?>">click here</a> to confirm your order. </noscript> </body> Edited April 27, 2008 by hasnut Quote Link to comment Share on other sites More sharing options...
hasnut Posted April 30, 2008 Author Share Posted April 30, 2008 I need how the checkout_process.php will know if its Approved or not. I am using 2checkout module as base, The CC is billed but when its returend to site it goes to checkout payment page with "There has been an error processing your credit card. Please try again." this error. Can anyone help? if ($result != 'APPROVED') { $messageStack->add_session('mirapy_payment', , 'error'); $redirect_url = zen_href_link(FILENAME_MIRAPAY_PAYMENT, '', $ssl_str, true, false); } else { $redirect_url = zen_href_link(FILENAME_CHECKOUT_PROCESS, 'cID=' . $co_id, $ssl_str, true, false); } //FIREFOX FIX $redirect_url = str_replace('&', '&', $redirect_url); echo $redirect_url; ?> <body> <script type="text/javascript" language="javascript">window.location="<?php echo $redirect_url; ?>"</script> <noscript> If you are not redirected please <a href="<?php echo $redirect_url; ?>">click here</a> to confirm your order. </noscript> </body> Its solved.:) :D Quote Link to comment Share on other sites More sharing options...
markg-uk Posted May 1, 2008 Share Posted May 1, 2008 Its solved.:) :D Thats nice - why don't you say how you solved it (to help the next person with the problem)? ;) Quote Link to comment Share on other sites More sharing options...
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.