Adjustment for logic with setting default payment method

This commit is contained in:
David Bomba 2025-06-17 15:01:58 +10:00
parent f6eddc1566
commit aefb7a46bd
1 changed files with 1 additions and 1 deletions

View File

@ -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]);
}