Results 1 to 2 of 2
  1. #1
    Join Date
    Jul 2004
    Posts
    5
    Plugin Contributions
    0

    Idea or Suggestion 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?

    Code:
    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>

  2. #2
    Join Date
    Oct 2009
    Posts
    1
    Plugin Contributions
    0

    Default 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!

 

 

Similar Threads

  1. Replies: 0
    Last Post: 16 Feb 2012, 06:03 PM
  2. Adding an example on the New Account Console - please check my code
    By starksark in forum Managing Customers and Orders
    Replies: 4
    Last Post: 7 May 2010, 07:04 PM
  3. How do I get the Coupon box to show up at check out?
    By mudlift in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 7
    Last Post: 28 Nov 2008, 02:45 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg