Add a line into log

This commit is contained in:
Laurent Destailleur 2022-10-27 02:06:02 +02:00
parent c7e4ca2437
commit fde8d2865f

View File

@ -342,9 +342,9 @@ $creditor = $mysoc->name;
$paramcreditor = 'ONLINE_PAYMENT_CREDITOR';
$paramcreditorlong = 'ONLINE_PAYMENT_CREDITOR_'.$suffix;
if (!empty($conf->global->$paramcreditorlong)) {
$creditor = $conf->global->$paramcreditorlong;
$creditor = $conf->global->$paramcreditorlong; // use label long of the seller to show
} elseif (!empty($conf->global->$paramcreditor)) {
$creditor = $conf->global->$paramcreditor;
$creditor = $conf->global->$paramcreditor; // use label short of the seller to show
}
$mesg = '';
@ -356,6 +356,8 @@ $mesg = '';
// Action dopayment is called after clicking/choosing the payment mode
if ($action == 'dopayment') {
dol_syslog("--- newpayment.php Execute action = ".$action." paymentmethod=".$paymentmethod.' amount='.$amount.' newamount='.GETPOST("newamount", 'alpha'), LOG_DEBUG, 0, '_stripe');
if ($paymentmethod == 'paypal') {
$PAYPAL_API_PRICE = price2num(GETPOST("newamount", 'alpha'), 'MT');
$PAYPAL_PAYMENT_TYPE = 'Sale';