Adjustment for logic with setting default payment method
This commit is contained in:
parent
f6eddc1566
commit
aefb7a46bd
|
|
@ -548,7 +548,7 @@ class BaseDriver extends AbstractPaymentDriver
|
|||
|
||||
$cgt->save();
|
||||
|
||||
if ($this->client->gateway_tokens->count() > 1) {
|
||||
if ($this->client->gateway_tokens->count() >= 1) {
|
||||
$this->client->gateway_tokens()->update(['is_default' => 0]);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue