Skip to content

Commit

Permalink
Merge branch 'main' into move-card-cvc-to-token-data
Browse files Browse the repository at this point in the history
  • Loading branch information
Chethan-rao authored Nov 30, 2023
2 parents c3d8785 + 8c37a8d commit f6d8060
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions crates/router/src/connector/trustpay/transformers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -499,6 +499,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)"),
Expand All @@ -512,6 +513,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, ""),
}
Expand Down

0 comments on commit f6d8060

Please sign in to comment.