Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Change payment gateways meta namespace
Jakub Draganekfa5d1801edd5
diff --git a/saleor/payment/utils.py b/saleor/payment/utils.pyindex a8a89e6060..7fb2582e29 100644--- a/saleor/payment/utils.py+++ b/saleor/payment/utils.py@@ -39,7 +39,7 @@ REQUIRED_GATEWAY_KEYS = {"currency",}ALLOWED_GATEWAY_KINDS = {choices[0] for choices in TransactionKind.CHOICES}-GATEWAYS_META_NAMESPACE = "gateways"+GATEWAYS_META_NAMESPACE = "payment-gateways"def list_enabled_gateways() -> List[str]:diff --git a/tests/api/test_payment.py b/tests/api/test_payment.pyindex ea84f7e680..095b306f3b 100644--- a/tests/api/test_payment.py+++ b/tests/api/test_payment.py@@ -468,7 +468,7 @@ def braintree_customer_id():def test_store_payment_gateway_meta(customer_user, braintree_customer_id):gateway_name = PaymentGatewayEnum.BRAINTREE.name- META = {"gateways": {gateway_name.upper(): {"customer_id": braintree_customer_id}}}+ META = {"payment-gateways": {gateway_name.upper(): {"customer_id": braintree_customer_id}}}store_customer_id(customer_user, gateway_name, braintree_customer_id)assert customer_user.private_meta == METAcustomer_user.refresh_from_db()