Skip to content

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

Use auth refrence as a searchable key

Maciej Korycinskida2884047d7e
diff --git a/saleor/payment/gateways/adyen/plugin.py b/saleor/payment/gateways/adyen/plugin.py
index a07835e0d4..c94adab6f6 100644
--- a/saleor/payment/gateways/adyen/plugin.py
+++ b/saleor/payment/gateways/adyen/plugin.py
@@ -277,7 +277,7 @@ class AdyenGatewayPlugin(BasePlugin):
kind = TransactionKind.PENDING
elif adyen_auto_capture:
kind = TransactionKind.CAPTURE
-
+ searchable_key = result.message.get("pspReference", "")
action = result.message.get("action")
error_message = result.message.get("refusalReason")
if action:
@@ -307,7 +307,7 @@ class AdyenGatewayPlugin(BasePlugin):
raw_response=result.message,
action_required_data=action,
payment_method_info=payment_method_info,
- searchable_key=result.message.get("pspReference", ""),
+ searchable_key=searchable_key,
)
@classmethod