Skip to content

Commit

Permalink
Fix cs
Browse files Browse the repository at this point in the history
  • Loading branch information
nfourtythree committed Jul 5, 2023
1 parent fd56ea7 commit 082cc2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/PaymentSources.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 082cc2f

Please sign in to comment.