Use latest gateway token

This commit is contained in:
Hillel Coren 2018-06-13 11:26:14 +03:00
parent 0e963f9dce
commit 921748a443

View File

@ -596,6 +596,7 @@ class BasePaymentDriver
$this->customer = AccountGatewayToken::clientAndGateway($clientId, $this->accountGateway->id) $this->customer = AccountGatewayToken::clientAndGateway($clientId, $this->accountGateway->id)
->with('payment_methods') ->with('payment_methods')
->orderBy('id', 'desc')
->first(); ->first();
if ($this->customer && $this->invitation) { if ($this->customer && $this->invitation) {