Skip to content

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

Merge pull request #5932 from mirumee/add-klarna-support

Marcin Gębala94b1f5b670ef
diff --cc saleor/payment/gateways/adyen/utils.py
index 3b0363b779,10db50dfa5..b1463c6580
--- a/saleor/payment/gateways/adyen/utils.py
+++ b/saleor/payment/gateways/adyen/utils.py
@@@ -108,11 -68,13 +68,11 @@@ def request_data_for_payment
if (
"browserInfo" in extra_request_params
and "billingAddress" in extra_request_params
+ and origin_url
):
- # Replace this assigment. Add note that customer_ip_address has incorrect name
- # Add to dashboard config the flow to combine channel with url like:
- # web1:https://shop.com, web2:https://shop1.com
extra_request_params["origin"] = origin_url
- method = payment_data["paymentMethod"].get("type", [])
+ payment_method = payment_data["paymentMethod"]
request_data = {
"amount": {