Add a line into log
This commit is contained in:
parent
c7e4ca2437
commit
fde8d2865f
@ -342,9 +342,9 @@ $creditor = $mysoc->name;
|
|||||||
$paramcreditor = 'ONLINE_PAYMENT_CREDITOR';
|
$paramcreditor = 'ONLINE_PAYMENT_CREDITOR';
|
||||||
$paramcreditorlong = 'ONLINE_PAYMENT_CREDITOR_'.$suffix;
|
$paramcreditorlong = 'ONLINE_PAYMENT_CREDITOR_'.$suffix;
|
||||||
if (!empty($conf->global->$paramcreditorlong)) {
|
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)) {
|
} elseif (!empty($conf->global->$paramcreditor)) {
|
||||||
$creditor = $conf->global->$paramcreditor;
|
$creditor = $conf->global->$paramcreditor; // use label short of the seller to show
|
||||||
}
|
}
|
||||||
|
|
||||||
$mesg = '';
|
$mesg = '';
|
||||||
@ -356,6 +356,8 @@ $mesg = '';
|
|||||||
|
|
||||||
// Action dopayment is called after clicking/choosing the payment mode
|
// Action dopayment is called after clicking/choosing the payment mode
|
||||||
if ($action == 'dopayment') {
|
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') {
|
if ($paymentmethod == 'paypal') {
|
||||||
$PAYPAL_API_PRICE = price2num(GETPOST("newamount", 'alpha'), 'MT');
|
$PAYPAL_API_PRICE = price2num(GETPOST("newamount", 'alpha'), 'MT');
|
||||||
$PAYPAL_PAYMENT_TYPE = 'Sale';
|
$PAYPAL_PAYMENT_TYPE = 'Sale';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user