Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Sign in to follow this  
hasnut

What values To pass at checkout_process.php

Recommended Posts

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 by hasnut

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
Its solved.:) :D

 

Thats nice - why don't you say how you solved it (to help the next person with the problem)? ;)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×