Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OCC-52: No Payment Needed Checkout #321

Merged
merged 23 commits into from
Jul 30, 2023
Merged

OCC-52: No Payment Needed Checkout #321

merged 23 commits into from
Jul 30, 2023

Conversation

porgabi
Copy link
Contributor

@porgabi porgabi commented Jul 26, 2023

OCC-52

Fixes #13

@porgabi porgabi marked this pull request as ready for review July 27, 2023 12:15
order.As<OrderPart>().ShippingAddress.Address,
order.As<OrderPart>().BillingAddress.Address);

if (!cartViewModel.Totals.Any() || cartViewModel.Totals.Sum().Value != 0)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

.Sum() is not appropriate here, because one of the possible reasons why you'd have multiple totals is if they are in different currencies. In this case the will throw InvalidOperationException.
Rather use cartViewModel.Totals.Any()

@LombiqBot LombiqBot merged commit 836bd45 into main Jul 30, 2023
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

No Payment Needed Checkout (OCC-52)
3 participants