1
0
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:
Hillel Coren 2016-08-01 15:01:04 +03:00
parent f3419587bf
commit 8f084ddbc1

View File

@ -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();
}