Fix: Error message

This commit is contained in:
Laurent Destailleur 2011-09-02 16:46:38 +00:00
parent 91dd9c79a1
commit 1df3ef4783

View File

@ -234,6 +234,7 @@ function print_paypal_redirect($paymentAmount,$currencyCodeType,$paymentType,$re
// Redirect to paypal.com here // Redirect to paypal.com here
$payPalURL = $API_Url . $token; $payPalURL = $API_Url . $token;
header("Location: ".$payPalURL); header("Location: ".$payPalURL);
exit;
} }
else else
{ {
@ -243,11 +244,11 @@ function print_paypal_redirect($paymentAmount,$currencyCodeType,$paymentType,$re
$ErrorLongMsg = urldecode($resArray["L_LONGMESSAGE0"]); $ErrorLongMsg = urldecode($resArray["L_LONGMESSAGE0"]);
$ErrorSeverityCode = urldecode($resArray["L_SEVERITYCODE0"]); $ErrorSeverityCode = urldecode($resArray["L_SEVERITYCODE0"]);
echo "SetExpressCheckout API call failed. "; echo "SetExpressCheckout API call failed. \n";
echo "Detailed Error Message: " . $ErrorLongMsg; echo "Detailed Error Message: " . $ErrorLongMsg." \n";
echo "Short Error Message: " . $ErrorShortMsg; echo "Short Error Message: " . $ErrorShortMsg." \n";
echo "Error Code: " . $ErrorCode; echo "Error Code: " . $ErrorCode." \n";
echo "Error Severity Code: " . $ErrorSeverityCode; echo "Error Severity Code: " . $ErrorSeverityCode." \n";
} }
} }