Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2006
    Location
    Chicago
    Posts
    1,162
    Plugin Contributions
    0

    Default Trying to Debug payment module

    Hi
    I am trying to debug the secpay payment module to figure out the exact problem
    As I see it, I get the error as
    "There has been an error processing your credit card. Please try again."
    wihch is generated in get_error() in the secpay.php

    I appended $_GET parameters and $_POST parameters in the string returned in the function using

    Code:
    $custom_error_message="GET";
    
           foreach ($_GET as $key => $value)
          {
             //$key = htmlspecialchars( $key );
             //$value = htmlspecialchars( $value );
            $custom_error_message .= $key."->".$value;
         }
    
    $custom_error_message.="POST";
    
           foreach ($_POST as $key => $value)
          {
             //$key = htmlspecialchars( $key );
             //$value = htmlspecialchars( $value );
            $custom_error_message .= $key."->".$value;
         }
    
    
    $error=$custom_error_message.MODULE_PAYMENT_SECPAY_TEXT_ERROR_MESSAGE;
    Now, what I get in the output is this string:

    GET
    main_page->checkout_payment
    zenid->b445f596fea2366cce9e0ae84337fa44
    payment_error->secpay
    POSTThere has been an error processing your credit card. Please try again.

    My question is how I can get the parameters returned by secpay so that I can find out the root cause of the problem as secpay site states that it returns the
    Callback Parameters. How or where can I find the returned values?
    Thanks
    Tutorials on Zen Cart
    http://tutorials.zen-cart.com/index.php
    ---------------
    advanced.programmer at gmail dot com
    In love with Zen Cart!!

  2. #2
    Join Date
    Feb 2006
    Location
    Chicago
    Posts
    1,162
    Plugin Contributions
    0

    Default Re: Trying to Debug payment module

    Anyone please???
    Tutorials on Zen Cart
    http://tutorials.zen-cart.com/index.php
    ---------------
    advanced.programmer at gmail dot com
    In love with Zen Cart!!

 

 

Similar Threads

  1. v139h Error with Bitpay payment module... trying to fix myself
    By lolwaut in forum Addon Payment Modules
    Replies: 6
    Last Post: 29 May 2014, 09:23 PM
  2. Trying to a payment module to dual process for preorders
    By cablesaurus in forum Addon Payment Modules
    Replies: 1
    Last Post: 21 Aug 2011, 07:10 PM
  3. USPS Shipping module and debug error
    By buildingblocks in forum Addon Shipping Modules
    Replies: 6
    Last Post: 13 Nov 2010, 09:27 PM
  4. Iridium Module - Blank Page - Debug Error
    By katea in forum Addon Payment Modules
    Replies: 3
    Last Post: 11 Jun 2010, 08:49 PM
  5. Authorize.net AIM still generating debug logs even with debug disabled
    By llynix in forum Upgrading from 1.3.x to 1.3.9
    Replies: 3
    Last Post: 11 May 2010, 01:03 AM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR