Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
In prepare_order_data we should use lines insted of checkout
fowczreke07f10c3789d
diff --git a/saleor/checkout/utils.py b/saleor/checkout/utils.pyindex b716f295f0..99f61621c2 100644--- a/saleor/checkout/utils.py+++ b/saleor/checkout/utils.py@@ -665,8 +665,7 @@ def prepare_order_data()order_data["lines"] = [- create_line_for_order(checkout_line=line, discounts=discounts)- for line in checkout+ create_line_for_order(checkout_line=line, discounts=discounts) for line in lines]# validate checkout gift cards@@ -678,7 +677,7 @@ def prepare_order_data(# assign gift cards to the orderorder_data["total_price_left"] = (- manager.calculate_checkout_subtotal(checkout, list(checkout), discounts)+ manager.calculate_checkout_subtotal(checkout, lines, discounts)+ shipping_total- checkout.discount).gross