Skip to content

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

Remove old fixme note

Maciej Korycinskid6da0d506bd8
diff --git a/saleor/payment/gateways/adyen/plugin.py b/saleor/payment/gateways/adyen/plugin.py
index aad329b400..221dbfabff 100644
--- a/saleor/payment/gateways/adyen/plugin.py
+++ b/saleor/payment/gateways/adyen/plugin.py
@@ -169,9 +169,7 @@ class AdyenGatewayPlugin(BasePlugin):
configuration = {item["name"]: item["value"] for item in self.configuration}
self.config = GatewayConfig(
gateway_name=GATEWAY_NAME,
- auto_capture=configuration[
- "Automatically mark payment as a capture"
- ], # FIXME check this
+ auto_capture=configuration["Automatically mark payment as a capture"],
supported_currencies=configuration["Supported currencies"],
connection_params={
"api_key": configuration["API key"],
@@ -234,7 +232,6 @@ class AdyenGatewayPlugin(BasePlugin):
def process_payment(
self, payment_information: "PaymentData", previous_value
) -> "GatewayResponse":
- # TODO Klarna data!!!
request_data = request_data_for_payment(
payment_information,
return_url=self.config.connection_params["return_url"],
diff --git a/saleor/payment/gateways/adyen/utils.py b/saleor/payment/gateways/adyen/utils.py
index e2dd6e2d4b..cfb9219e07 100644
--- a/saleor/payment/gateways/adyen/utils.py
+++ b/saleor/payment/gateways/adyen/utils.py
@@ -140,7 +140,6 @@ def request_data_for_gateway_config(
) -> Dict[str, str]:
address = checkout.billing_address or checkout.shipping_address
- # FIXME check how it works if we have None here
country = address.country if address else None
if country:
country_code = country.code