mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-07 10:44:29 -04:00
Set last entered payment method as the default
This commit is contained in:
parent
948a3e8911
commit
bf5d6ac1ee
@ -518,7 +518,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