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
948a3e8911
commit
bf5d6ac1ee
@ -518,7 +518,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…
x
Reference in New Issue
Block a user