Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

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

Posted
Its solved.:) :D

 

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

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.

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...