From 921748a443fbfa2cad3c301663a99fc349c67447 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Wed, 13 Jun 2018 11:26:14 +0300 Subject: [PATCH] Use latest gateway token --- app/Ninja/PaymentDrivers/BasePaymentDriver.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Ninja/PaymentDrivers/BasePaymentDriver.php b/app/Ninja/PaymentDrivers/BasePaymentDriver.php index daa50f0ff42c..5bca9677934a 100644 --- a/app/Ninja/PaymentDrivers/BasePaymentDriver.php +++ b/app/Ninja/PaymentDrivers/BasePaymentDriver.php @@ -596,6 +596,7 @@ class BasePaymentDriver $this->customer = AccountGatewayToken::clientAndGateway($clientId, $this->accountGateway->id) ->with('payment_methods') + ->orderBy('id', 'desc') ->first(); if ($this->customer && $this->invitation) {