Fix: Option MEMBER_PAYONLINE_SENDEMAIL was not working
This commit is contained in:
parent
49d65e5ebe
commit
7d2f904174
@ -64,7 +64,7 @@ dol_syslog("POST=".$tracepost, LOG_DEBUG, 0, '_paybox');
|
|||||||
|
|
||||||
|
|
||||||
// Send an email
|
// Send an email
|
||||||
if (! empty($conf->global->MEMBER_PAYONLINE_SENDEMAIL) && preg_match('/MEM=',$fulltag))
|
if (! empty($conf->global->MEMBER_PAYONLINE_SENDEMAIL) && preg_match('/MEM=/',$fulltag))
|
||||||
{
|
{
|
||||||
$sendto=$conf->global->MEMBER_PAYONLINE_SENDEMAIL;
|
$sendto=$conf->global->MEMBER_PAYONLINE_SENDEMAIL;
|
||||||
$from=$conf->global->MAILING_EMAIL_FROM;
|
$from=$conf->global->MAILING_EMAIL_FROM;
|
||||||
@ -79,11 +79,11 @@ if (! empty($conf->global->MEMBER_PAYONLINE_SENDEMAIL) && preg_match('/MEM=',$fu
|
|||||||
$result=$mailfile->sendfile();
|
$result=$mailfile->sendfile();
|
||||||
if ($result)
|
if ($result)
|
||||||
{
|
{
|
||||||
dol_syslog("EMail sent to ".$sendto);
|
dol_syslog("EMail sent to ".$sendto, LOG_DEBUG, 0, '_paybox');
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
dol_syslog("Failed to send EMail to ".$sendto, LOG_ERR);
|
dol_syslog("Failed to send EMail to ".$sendto, LOG_ERR, 0, '_paybox');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -94,7 +94,7 @@ dol_syslog("Call newpaymentok with token=".$token." paymentType=".$paymentType."
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
// Send an email
|
// Send an email
|
||||||
if (! empty($conf->global->MEMBER_PAYONLINE_SENDEMAIL) && preg_match('/MEM=',$fulltag))
|
if (! empty($conf->global->MEMBER_PAYONLINE_SENDEMAIL) && preg_match('/MEM=/',$fulltag))
|
||||||
{
|
{
|
||||||
$sendto=$conf->global->MEMBER_PAYONLINE_SENDEMAIL;
|
$sendto=$conf->global->MEMBER_PAYONLINE_SENDEMAIL;
|
||||||
$from=$conf->global->MAILING_EMAIL_FROM;
|
$from=$conf->global->MAILING_EMAIL_FROM;
|
||||||
@ -109,11 +109,11 @@ if (! empty($conf->global->MEMBER_PAYONLINE_SENDEMAIL) && preg_match('/MEM=',$fu
|
|||||||
$result=$mailfile->sendfile();
|
$result=$mailfile->sendfile();
|
||||||
if ($result)
|
if ($result)
|
||||||
{
|
{
|
||||||
dol_syslog("EMail sent to ".$sendto);
|
dol_syslog("EMail sent to ".$sendto, LOG_DEBUG, 0, '_paybox');
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
dol_syslog("Failed to send EMail to ".$sendto, LOG_ERR);
|
dol_syslog("Failed to send EMail to ".$sendto, LOG_ERR, 0, '_paybox');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -72,7 +72,7 @@ dol_syslog("POST=".$tracepost, LOG_DEBUG, 0, '_paypal');
|
|||||||
|
|
||||||
|
|
||||||
// Send an email
|
// Send an email
|
||||||
if (! empty($conf->global->MEMBER_PAYONLINE_SENDEMAIL) && preg_match('/MEM=',$fulltag))
|
if (! empty($conf->global->MEMBER_PAYONLINE_SENDEMAIL) && preg_match('/MEM=/',$fulltag))
|
||||||
{
|
{
|
||||||
$sendto=$conf->global->MEMBER_PAYONLINE_SENDEMAIL;
|
$sendto=$conf->global->MEMBER_PAYONLINE_SENDEMAIL;
|
||||||
$from=$conf->global->MAILING_EMAIL_FROM;
|
$from=$conf->global->MAILING_EMAIL_FROM;
|
||||||
@ -87,11 +87,11 @@ if (! empty($conf->global->MEMBER_PAYONLINE_SENDEMAIL) && preg_match('/MEM=',$fu
|
|||||||
$result=$mailfile->sendfile();
|
$result=$mailfile->sendfile();
|
||||||
if ($result)
|
if ($result)
|
||||||
{
|
{
|
||||||
dol_syslog("EMail sent to ".$sendto);
|
dol_syslog("EMail sent to ".$sendto, LOG_DEBUG, 0, '_paypal');
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
dol_syslog("Failed to send EMail to ".$sendto, LOG_ERR);
|
dol_syslog("Failed to send EMail to ".$sendto, LOG_ERR, 0, '_paypal');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -127,11 +127,11 @@ if ($PAYPALTOKEN)
|
|||||||
// From env
|
// From env
|
||||||
$ipaddress = $_SESSION['ipaddress'];
|
$ipaddress = $_SESSION['ipaddress'];
|
||||||
|
|
||||||
dol_syslog("Call newpaymentok with token=".$token." paymentType=".$paymentType." currencyCodeType=".$currencyCodeType." payerID=".$payerID." ipaddress=".$ipaddress." FinalPaymentAmt=".$FinalPaymentAmt." fulltag=".$fulltag);
|
dol_syslog("Call newpaymentok with token=".$token." paymentType=".$paymentType." currencyCodeType=".$currencyCodeType." payerID=".$payerID." ipaddress=".$ipaddress." FinalPaymentAmt=".$FinalPaymentAmt." fulltag=".$fulltag, LOG_DEBUG, 0, '_paypal');
|
||||||
|
|
||||||
|
|
||||||
// Send an email
|
// Send an email
|
||||||
if (! empty($conf->global->MEMBER_PAYONLINE_SENDEMAIL) && preg_match('/MEM=',$fulltag))
|
if (! empty($conf->global->MEMBER_PAYONLINE_SENDEMAIL) && preg_match('/MEM=/',$fulltag))
|
||||||
{
|
{
|
||||||
$sendto=$conf->global->MEMBER_PAYONLINE_SENDEMAIL;
|
$sendto=$conf->global->MEMBER_PAYONLINE_SENDEMAIL;
|
||||||
$from=$conf->global->MAILING_EMAIL_FROM;
|
$from=$conf->global->MAILING_EMAIL_FROM;
|
||||||
@ -146,11 +146,11 @@ if ($PAYPALTOKEN)
|
|||||||
$result=$mailfile->sendfile();
|
$result=$mailfile->sendfile();
|
||||||
if ($result)
|
if ($result)
|
||||||
{
|
{
|
||||||
dol_syslog("EMail sent to ".$sendto);
|
dol_syslog("EMail sent to ".$sendto, LOG_DEBUG, 0, '_paypal');
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
dol_syslog("Failed to send EMail to ".$sendto, LOG_ERR);
|
dol_syslog("Failed to send EMail to ".$sendto, LOG_ERR, 0, '_paypal');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -158,11 +158,11 @@ if ($PAYPALTOKEN)
|
|||||||
// Validate record
|
// Validate record
|
||||||
if (! empty($paymentType))
|
if (! empty($paymentType))
|
||||||
{
|
{
|
||||||
dol_syslog("We call GetExpressCheckoutDetails");
|
dol_syslog("We call GetExpressCheckoutDetails", LOG_DEBUG, 0, '_paypal');
|
||||||
$resArray=getDetails($token);
|
$resArray=getDetails($token);
|
||||||
//var_dump($resarray);
|
//var_dump($resarray);
|
||||||
|
|
||||||
dol_syslog("We call DoExpressCheckoutPayment token=".$token." paymentType=".$paymentType." currencyCodeType=".$currencyCodeType." payerID=".$payerID." ipaddress=".$ipaddress." FinalPaymentAmt=".$FinalPaymentAmt." fulltag=".$fulltag);
|
dol_syslog("We call DoExpressCheckoutPayment token=".$token." paymentType=".$paymentType." currencyCodeType=".$currencyCodeType." payerID=".$payerID." ipaddress=".$ipaddress." FinalPaymentAmt=".$FinalPaymentAmt." fulltag=".$fulltag, LOG_DEBUG, 0, '_paypal');
|
||||||
$resArray=confirmPayment($token, $paymentType, $currencyCodeType, $payerID, $ipaddress, $FinalPaymentAmt, $fulltag);
|
$resArray=confirmPayment($token, $paymentType, $currencyCodeType, $payerID, $ipaddress, $FinalPaymentAmt, $fulltag);
|
||||||
|
|
||||||
$ack = strtoupper($resArray["ACK"]);
|
$ack = strtoupper($resArray["ACK"]);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user