Server's IP address, instead of client's is passed to payment gateway. #1507

This commit is contained in:
Hillel Coren 2017-06-04 22:18:22 +03:00
parent b4437c645b
commit b1c91e2632

View File

@ -381,7 +381,7 @@ class BasePaymentDriver
'description' => trans('texts.' . $invoice->getEntityType()) . " {$invoice->invoice_number}", 'description' => trans('texts.' . $invoice->getEntityType()) . " {$invoice->invoice_number}",
'transactionId' => $invoice->invoice_number, 'transactionId' => $invoice->invoice_number,
'transactionType' => 'Purchase', 'transactionType' => 'Purchase',
'ip' => Request::ip(), 'ip' => Request::getClientIp(),
]; ];
if ($paymentMethod) { if ($paymentMethod) {