Fix: Error message
This commit is contained in:
parent
147bed20f1
commit
dad8513e2d
@ -235,6 +235,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
|
||||||
{
|
{
|
||||||
@ -244,11 +245,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";
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user