Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2010
    Posts
    3
    Plugin Contributions
    0

    Default AsianPay Payment Module Implementation Problem

    Hello,
    I am trying to implement a payment module, the problem I am having is that whatever happens in the transaction page I receive a message that says my transaction was successful but in reality it was supposed to say transaction failed, because I am entering wrong CC info.

    PHP Code:
    function before_process() {
          global 
    $_POST$messageStack;

        if (
    $_POST['Succeed'] == '0') return;
        if (
    $_POST['Succeed'] == '1') {
          
    $messageStack->add_session('checkout_payment'MODULE_PAYMENT_ASIANPAY_TEXT_DECLINED_MESSAGE'error');
          
    zen_redirect(zen_href_link(FILENAME_CHECKOUT_PAYMENT'''SSL'truefalse));
        }
        
    // Code 3 is an error - but anything else is an error too (IMHO)
        
    $messageStack->add_session('checkout_payment'MODULE_PAYMENT_ASIANPAY_TEXT_ERROR_MESSAGE'error');
        
    zen_redirect(zen_href_link(FILENAME_CHECKOUT_PAYMENT'''SSL'truefalse));
        } 
    Above code is in the payment module page and it is invoked in includes/modules/checkout_process.php as below
    PHP Code:
    // load the before_process function from the payment modules
    $payment_modules->before_process(); 
    This code does not seem to work properly. Somehow the system bypasses before_process() function. Where do I make mistake? Could anyone help me please? Thank you.

  2. #2
    Join Date
    Jan 2010
    Posts
    3
    Plugin Contributions
    0

    Default Re: Payment Module Implementation

    Any idea please?

 

 

Similar Threads

  1. UPS XML Module - Implementation?
    By bowserhound in forum Addon Shipping Modules
    Replies: 13
    Last Post: 25 Mar 2011, 02:33 PM
  2. Replies: 16
    Last Post: 27 Oct 2010, 05:59 AM
  3. Payment module problem
    By metoo in forum General Questions
    Replies: 1
    Last Post: 7 Oct 2008, 05:34 AM
  4. Implementation Q for GV Payment
    By KGZotU in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 5
    Last Post: 25 Dec 2006, 12:52 AM

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