Fix: Error message
This commit is contained in:
parent
91dd9c79a1
commit
1df3ef4783
@ -234,6 +234,7 @@ function print_paypal_redirect($paymentAmount,$currencyCodeType,$paymentType,$re
|
||||
// Redirect to paypal.com here
|
||||
$payPalURL = $API_Url . $token;
|
||||
header("Location: ".$payPalURL);
|
||||
exit;
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -243,11 +244,11 @@ function print_paypal_redirect($paymentAmount,$currencyCodeType,$paymentType,$re
|
||||
$ErrorLongMsg = urldecode($resArray["L_LONGMESSAGE0"]);
|
||||
$ErrorSeverityCode = urldecode($resArray["L_SEVERITYCODE0"]);
|
||||
|
||||
echo "SetExpressCheckout API call failed. ";
|
||||
echo "Detailed Error Message: " . $ErrorLongMsg;
|
||||
echo "Short Error Message: " . $ErrorShortMsg;
|
||||
echo "Error Code: " . $ErrorCode;
|
||||
echo "Error Severity Code: " . $ErrorSeverityCode;
|
||||
echo "SetExpressCheckout API call failed. \n";
|
||||
echo "Detailed Error Message: " . $ErrorLongMsg." \n";
|
||||
echo "Short Error Message: " . $ErrorShortMsg." \n";
|
||||
echo "Error Code: " . $ErrorCode." \n";
|
||||
echo "Error Severity Code: " . $ErrorSeverityCode." \n";
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user