Skip to content

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

Merge branch 'master' of github.com:mirumee/saleor into feature/assing-variants-to-channel-listings

Damian Wa0a6b5cd0969
diff --cc saleor/graphql/checkout/mutations.py
index bcb63bf6e5,28d726a8b9..b96989cc59
--- a/saleor/graphql/checkout/mutations.py
+++ b/saleor/graphql/checkout/mutations.py
@@@ -898,12 -883,13 +907,15 @@@ class CheckoutComplete(BaseMutation)
)
raise e
+ manager = info.context.plugins
lines = fetch_checkout_lines(checkout)
+ variants = [line.variant for line in lines]
+ validate_variants_available_in_channel(variants, checkout.channel)
- checkout_info = fetch_checkout_info(checkout, lines, info.context.discounts)
+ checkout_info = fetch_checkout_info(
+ checkout, lines, info.context.discounts, manager
+ )
order, action_required, action_data = complete_checkout(
- manager=info.context.plugins,
+ manager=manager,
checkout_info=checkout_info,
lines=lines,
payment_data=data.get("payment_data", {}),