Fix: Missing message keys
This commit is contained in:
parent
d595b96c8e
commit
6cb39ea3dc
@ -20,4 +20,6 @@ YouAreCurrentlyInSandboxMode=You are currently in the "sandbox" mode
|
|||||||
NewPaypalPaymentReceived=New Paypal payment received
|
NewPaypalPaymentReceived=New Paypal payment received
|
||||||
NewPaypalPaymentFailed=New Paypal payment tried but failed
|
NewPaypalPaymentFailed=New Paypal payment tried but failed
|
||||||
PAYPAL_PAYONLINE_SENDEMAIL=EMail to warn after a payment (success or not)
|
PAYPAL_PAYONLINE_SENDEMAIL=EMail to warn after a payment (success or not)
|
||||||
ReturnURLAfterPayment=Return URL after payment
|
ReturnURLAfterPayment=Return URL after payment
|
||||||
|
ValidationOfPaypalPaymentFailed=Validation of Paypal payment failed
|
||||||
|
PaypalConfirmPaymentPageWasCalledButFailed=Payment confirmation page for Paypal was called by Paypal but confirmation failed
|
||||||
|
|||||||
@ -220,26 +220,29 @@ if ($PAYPALTOKEN)
|
|||||||
$ErrorLongMsg = urldecode($resArray["L_LONGMESSAGE0"]);
|
$ErrorLongMsg = urldecode($resArray["L_LONGMESSAGE0"]);
|
||||||
$ErrorSeverityCode = urldecode($resArray["L_SEVERITYCODE0"]);
|
$ErrorSeverityCode = urldecode($resArray["L_SEVERITYCODE0"]);
|
||||||
|
|
||||||
echo "DoExpressCheckoutPayment API call failed. ";
|
echo "DoExpressCheckoutPayment API call failed.<br>\n";
|
||||||
echo "Detailed Error Message: " . $ErrorLongMsg;
|
echo "Detailed Error Message: " . $ErrorLongMsg."<br>\n";
|
||||||
echo "Short Error Message: " . $ErrorShortMsg;
|
echo "Short Error Message: " . $ErrorShortMsg."<br>\n";
|
||||||
echo "Error Code: " . $ErrorCode;
|
echo "Error Code: " . $ErrorCode."<br>\n";
|
||||||
echo "Error Severity Code: " . $ErrorSeverityCode;
|
echo "Error Severity Code: " . $ErrorSeverityCode."<br>\n";
|
||||||
|
|
||||||
if ($mysoc->email) echo "\nPlease, send a screenshot of this page to ".$mysoc->email;
|
if ($mysoc->email) echo "\nPlease, send a screenshot of this page to ".$mysoc->email."<br>\n";
|
||||||
|
|
||||||
// Send an email
|
// Send an email
|
||||||
if (! empty($conf->global->PAYPAL_PAYONLINE_SENDEMAIL))
|
if (! empty($conf->global->PAYPAL_PAYONLINE_SENDEMAIL))
|
||||||
{
|
{
|
||||||
$sendto=$conf->global->PAYPAL_PAYONLINE_SENDEMAIL;
|
$sendto=$conf->global->PAYPAL_PAYONLINE_SENDEMAIL;
|
||||||
$from=$conf->global->MAILING_EMAIL_FROM;
|
$from=$conf->global->MAILING_EMAIL_FROM;
|
||||||
|
$topic='['.$conf->global->MAIN_APPLICATION_TITLE.'] '.$langs->transnoentitiesnoconv("ValidationOfPaypalPaymentFailed");
|
||||||
|
$content="";
|
||||||
|
$content.=$langs->transnoentitiesnoconv("PaypalConfirmPaymentPageWasCalledButFailed");
|
||||||
|
$content.="\n";
|
||||||
|
$content.=$langs->transnoentitiesnoconv("TechnicalInformation").":\n";
|
||||||
|
$content.=$langs->transnoentitiesnoconv("ReturnURLAfterPayment").': '.$urlback."\n";
|
||||||
|
$content.="tag=".$fulltag."\ntoken=".$token." paymentType=".$paymentType." currencycodeType=".$currencyCodeType." payerId=".$payerID." ipaddress=".$ipaddress." FinalPaymentAmt=".$FinalPaymentAmt;
|
||||||
|
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/class/CMailFile.class.php';
|
require_once DOL_DOCUMENT_ROOT.'/core/class/CMailFile.class.php';
|
||||||
$mailfile = new CMailFile(
|
$mailfile = new CMailFile($topic, $sendto, $from, $content);
|
||||||
'['.$conf->global->MAIN_APPLICATION_TITLE.'] '.$langs->transnoentitiesnoconv("ValidationOfPaypalPaymentFailed"),
|
|
||||||
$sendto,
|
|
||||||
$from,
|
|
||||||
$langs->transnoentitiesnoconv("PaypalConfirmPaymentPageWasCalledButFailed")."\ntag=".$fulltag."\ntoken=".$token." paymentType=".$paymentType." currencycodeType=".$currencyCodeType." payerId=".$payerID." ipaddress=".$ipaddress." FinalPaymentAmt=".$FinalPaymentAmt."\nErrorCode=".$ErrorCode."\nErrorLongMsg=".$ErrorLongMsg
|
|
||||||
);
|
|
||||||
|
|
||||||
$result=$mailfile->sendfile();
|
$result=$mailfile->sendfile();
|
||||||
if ($result)
|
if ($result)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user