diff --git a/src/services/PaymentSources.php b/src/services/PaymentSources.php index 530f2ed175..62925919fc 100644 --- a/src/services/PaymentSources.php +++ b/src/services/PaymentSources.php @@ -284,7 +284,7 @@ public function createPaymentSource(int $customerId, GatewayInterface $gateway, throw new PaymentSourceException(Craft::t('commerce', 'Could not create the payment source.')); } - if($makePrimarySource) { + if ($makePrimarySource) { Plugin::getInstance()->getCustomers()->savePrimaryPaymentSourceId($source->getCustomer(), $source->id); }