From b1c91e2632020eb5b1305511c81739f307b0a1ae Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Sun, 4 Jun 2017 22:18:22 +0300 Subject: [PATCH] Server's IP address, instead of client's is passed to payment gateway. #1507 --- app/Ninja/PaymentDrivers/BasePaymentDriver.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Ninja/PaymentDrivers/BasePaymentDriver.php b/app/Ninja/PaymentDrivers/BasePaymentDriver.php index 78e0d39b3b53..8791a2e4921d 100644 --- a/app/Ninja/PaymentDrivers/BasePaymentDriver.php +++ b/app/Ninja/PaymentDrivers/BasePaymentDriver.php @@ -381,7 +381,7 @@ class BasePaymentDriver 'description' => trans('texts.' . $invoice->getEntityType()) . " {$invoice->invoice_number}", 'transactionId' => $invoice->invoice_number, 'transactionType' => 'Purchase', - 'ip' => Request::ip(), + 'ip' => Request::getClientIp(), ]; if ($paymentMethod) {