mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-11 13:42:49 +01:00
Set last entered payment method as the default
This commit is contained in:
parent
f3419587bf
commit
8f084ddbc1
@ -513,7 +513,7 @@ class BasePaymentDriver
|
||||
|
||||
$paymentMethod = $this->createPaymentMethod($customer);
|
||||
|
||||
if ($paymentMethod && ! $customer->default_payment_method_id) {
|
||||
if ($paymentMethod) {
|
||||
$customer->default_payment_method_id = $paymentMethod->id;
|
||||
$customer->save();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user