Fixes for setting default database

This commit is contained in:
David Bomba 2021-04-12 22:12:50 +10:00
parent bde5166827
commit fa602ef0cd
2 changed files with 6 additions and 1 deletions

View File

@ -192,6 +192,7 @@ class MultiDB
return true;
}
self::setDefaultDatabase();
return false;
}
@ -205,6 +206,7 @@ class MultiDB
return true;
}
}
self::setDefaultDatabase();
return false;
}
@ -218,6 +220,7 @@ class MultiDB
return true;
}
}
self::setDefaultDatabase();
return false;
}
@ -230,6 +233,7 @@ class MultiDB
return true;
}
}
self::setDefaultDatabase();
return false;
}
@ -242,6 +246,7 @@ class MultiDB
return true;
}
}
self::setDefaultDatabase();
return false;
}

View File

@ -141,7 +141,7 @@ class CreditCard
$this->checkout->payment_hash->data = array_merge((array)$this->checkout->payment_hash->data, ['checkout_payment_ref' => $payment]);
$this->checkout->payment_hash->save();
if ($this->checkout->client->currency()->code === 'EUR') {
if ($this->checkout->client->currency()->code == 'EUR') {
$payment->{'3ds'} = ['enabled' => true];
$payment->{'success_url'} = route('payment_webhook', [