Fixes: buy_without_registration...

This commit is contained in:
Egor Pavlovich Gorbunov 2025-06-07 17:21:15 +03:00
parent 2b181b18cd
commit 56e33474dc

View file

@ -736,7 +736,7 @@ class Order(ExportModelOperationsMixin("order"), NiceModel):
)
payment_method = kwargs.get("payment_method")
available_payment_methods = cache.get("payment_methods")
available_payment_methods = cache.get("payment_methods").get("payment_methods")
if payment_method not in available_payment_methods:
raise ValueError(_(f"invalid payment method: {payment_method} from {available_payment_methods}"))