mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-02-08 00:52:01 +01:00
Fix bad ip
This commit is contained in:
@@ -428,7 +428,7 @@ if ($action == 'charge' && ! empty($conf->stripe->enabled))
|
||||
'dol_version' => DOL_VERSION,
|
||||
'dol_entity' => $conf->entity,
|
||||
'dol_company' => $mysoc->name, // Usefull when using multicompany
|
||||
'ipaddress'=>(empty($_SERVER['REMOTE_ADDR'])?'':$_SERVER['REMOTE_ADDR'])
|
||||
'ipaddress'=> getUserRemoteIP()
|
||||
);
|
||||
|
||||
if (! empty($thirdparty_id)) $metadata["dol_thirdparty_id"] = $thirdparty_id;
|
||||
@@ -602,7 +602,7 @@ if ($action == 'charge' && ! empty($conf->stripe->enabled))
|
||||
$_SESSION["FinalPaymentAmt"] = $amount;
|
||||
$_SESSION["currencyCodeType"] = $currency;
|
||||
$_SESSION["paymentType"] = '';
|
||||
$_SESSION['ipaddress'] = $_SERVER['REMOTE_ADDR']; // Payer ip
|
||||
$_SESSION['ipaddress'] = getUserRemoteIP(); // Payer ip
|
||||
$_SESSION['payerID'] = is_object($customer)?$customer->id:'';
|
||||
$_SESSION['TRANSACTIONID'] = is_object($charge)?$charge->id:'';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user