From e9528f5e00238fac5c199e2d17ba50c2bfb43c57 Mon Sep 17 00:00:00 2001 From: Pietro Tota Date: Fri, 29 Mar 2024 19:09:33 +0100 Subject: [PATCH] fix: NPG wallet cards policy --- .../wallet-app/api/npg-notifications/v1/_base_policy.xml.tpl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/domains/wallet-app/api/npg-notifications/v1/_base_policy.xml.tpl b/src/domains/wallet-app/api/npg-notifications/v1/_base_policy.xml.tpl index ab140e241a..6bdc37160e 100644 --- a/src/domains/wallet-app/api/npg-notifications/v1/_base_policy.xml.tpl +++ b/src/domains/wallet-app/api/npg-notifications/v1/_base_policy.xml.tpl @@ -52,12 +52,13 @@ cardId4 = (string)((JObject)additionalData)["cardId4"]; } string paymentCircuit = (string)operation["paymentCircuit"]; + string paymentMethod = (string)operation["paymentMethod"]; JObject details = null; if(paymentCircuit == "PAYPAL"){ details = new JObject(); details["type"] = "PAYPAL"; details["maskedEmail"] = (string)operation["paymentInstrumentInfo"]; - } else if(paymentCircuit == "CARD"){ + } else if(paymentMethod == "CARD"){ details = new JObject(); details["type"] = "CARD"; details["paymentInstrumentGatewayId"] = cardId4;