Set last entered payment method as the default

This commit is contained in:
Hillel Coren 2016-08-01 15:00:47 +03:00
parent 948a3e8911
commit bf5d6ac1ee

View File

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