Zen Cart Logo
Forums / Built-in Shipping and Payment Modules / How do I get my new payment module to check the return code?

How do I get my new payment module to check the return code?

Locked

Views: 1,435

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
27 Apr 2008, 11:50 PM
#1
hasnut avatar

hasnut

New Zenner

Join Date:
Jul 2004
Posts:
4
Plugin Contributions:
0

How do I get my new payment module to check the return code?

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. this is for MIRAPAY gateway.

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>
4 Jun 2010, 7:52 PM
#2
jwong73 avatar

jwong73

New Zenner

Join Date:
Oct 2009
Posts:
1
Plugin Contributions:
0

Re: How do I get my new payment module to check the return code?

Hi,

I will be using MiraPay Direct payment gateway, and was wondering if you were successful in getting that to work with Zen Cart. Would it be possible to grab the module from you?

Please let me know.

Thanks!