Skip to content

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

Don't overwrite password setting

Maciej Korycinskibfa21998d2fb
diff --git a/saleor/payment/gateways/adyen/plugin.py b/saleor/payment/gateways/adyen/plugin.py
index 88c02bc97c..fa9a47002f 100644
--- a/saleor/payment/gateways/adyen/plugin.py
+++ b/saleor/payment/gateways/adyen/plugin.py
@@ -313,17 +313,10 @@ class AdyenGatewayPlugin(BasePlugin):
def _update_config_items(
cls, configuration_to_update: List[dict], current_config: List[dict]
):
- super()._update_config_items(configuration_to_update, current_config)
- to_update = False
for item in configuration_to_update:
- if item.get("name") == "notification-password" and item["value"]:
- to_update = True
- break
- if not to_update:
- return
- for item in current_config:
if item.get("name") == "notification-password" and item["value"]:
item["value"] = make_password(item["value"])
+ super()._update_config_items(configuration_to_update, current_config)
@require_active_plugin
def get_payment_config(self, previous_value):