From 0eb1a10ab4e28a9024302fc9d56701392acdb6df Mon Sep 17 00:00:00 2001 From: Sk Sakil Mostak Date: Mon, 20 Nov 2023 18:00:45 +0530 Subject: [PATCH 1/2] fix: add mapping to error code --- crates/router/src/connector/trustpay/transformers.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/router/src/connector/trustpay/transformers.rs b/crates/router/src/connector/trustpay/transformers.rs index 32b52a115df0..fa45abea4053 100644 --- a/crates/router/src/connector/trustpay/transformers.rs +++ b/crates/router/src/connector/trustpay/transformers.rs @@ -498,6 +498,7 @@ fn is_payment_failed(payment_status: &str) -> (bool, &'static str) { true, "Transaction declined (maximum transaction frequency exceeded)", ), + "800.100.165" => (true, "Transaction declined (card lost)"), "800.100.168" => (true, "Transaction declined (restricted card)"), "800.100.170" => (true, "Transaction declined (transaction not permitted)"), "800.100.171" => (true, "transaction declined (pick up card)"), From 1c40d343f27c3e66990c204a6e4bbcb7a9a74d4d Mon Sep 17 00:00:00 2001 From: Sk Sakil Mostak Date: Tue, 28 Nov 2023 20:13:15 +0530 Subject: [PATCH 2/2] fix: mapping to error --- crates/router/src/connector/trustpay/transformers.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/crates/router/src/connector/trustpay/transformers.rs b/crates/router/src/connector/trustpay/transformers.rs index fa4cf00ea3f4..ebf1cc6c35b7 100644 --- a/crates/router/src/connector/trustpay/transformers.rs +++ b/crates/router/src/connector/trustpay/transformers.rs @@ -512,6 +512,10 @@ fn is_payment_failed(payment_status: &str) -> (bool, &'static str) { true, "Transaction for the same session is currently being processed, please try again later", ), + "900.100.100" => ( + true, + "Unexpected communication error with connector/acquirer", + ), "900.100.300" => (true, "Timeout, uncertain result"), _ => (false, ""), }