Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Move const to file beginning
Jakub Draganek971d1dea20ae
diff --git a/saleor/payment/utils.py b/saleor/payment/utils.pyindex 2a904a8dc9..c14f122863 100644--- a/saleor/payment/utils.py+++ b/saleor/payment/utils.py@@ -41,6 +41,7 @@ REQUIRED_GATEWAY_KEYS = {"currency",}ALLOWED_GATEWAY_KINDS = {choices[0] for choices in TransactionKind.CHOICES}+GATEWAYS_LABEL = "gateways"def list_enabled_gateways() -> List[str]:@@ -518,9 +519,6 @@ def gateway_refund(payment, amount: Decimal = None) -> Transaction:return transaction-GATEWAYS_LABEL = "gateways"--def extract_id_for_payment_gateway(user, gateway):key = prepare_label_name(gateway)gateway_config = user.get_private_meta(label=GATEWAYS_LABEL).get(key, {})