Set last entered payment method as the default
This commit is contained in:
parent
f3419587bf
commit
8f084ddbc1
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Reference in a new issue