Zen Cart Logo
Forums / Addon Payment Modules / Trying to Debug payment module

Trying to Debug payment module

Locked

Views: 1,419

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
20 Feb 2007, 9:19 PM
#1
superprg avatar

superprg

Totally Zenned

Join Date:
Feb 2006
Location:
Chicago
Posts:
1,349
Plugin Contributions:
0

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

$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

24 Feb 2007, 4:34 PM
#2
superprg avatar

superprg

Totally Zenned

Join Date:
Feb 2006
Location:
Chicago
Posts:
1,349
Plugin Contributions:
0

Re: Trying to Debug payment module

Anyone please???