mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-23 20:00:33 -04: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);
|
$paymentMethod = $this->createPaymentMethod($customer);
|
||||||
|
|
||||||
if ($paymentMethod && ! $customer->default_payment_method_id) {
|
if ($paymentMethod) {
|
||||||
$customer->default_payment_method_id = $paymentMethod->id;
|
$customer->default_payment_method_id = $paymentMethod->id;
|
||||||
$customer->save();
|
$customer->save();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user