Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Required billing address for placing order

Unknown8569e69b5be6
diff --git a/saleor/checkout/utils.py b/saleor/checkout/utils.py
index fc9745fe89..19d587beab 100644
--- a/saleor/checkout/utils.py
+++ b/saleor/checkout/utils.py
@@ -902,6 +902,9 @@ def ready_to_place_order(cart: Cart, taxes, discounts):
return False, pgettext_lazy(
'order placement error',
'Shipping method is not valid for your shipping address')
+ if not cart.billing_address:
+ return False, pgettext_lazy(
+ 'order placement_error', 'Billing address is not set')
if not can_be_fully_paid(cart, taxes, discounts):
return False, pgettext_lazy(
'order placement error',