Skip to content

Commit

Permalink
fix(connector): [Trustpay] Add missing payment status codes in failur…
Browse files Browse the repository at this point in the history
…e check (#1997)
  • Loading branch information
sai-harsha-vardhan committed Aug 24, 2023
1 parent 4accb41 commit e889749
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions crates/router/src/connector/trustpay/transformers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,7 @@ fn is_payment_failed(payment_status: &str) -> (bool, &'static str) {
"100.390.115" => (true, "Authentication failed due to invalid message format"),
"100.390.118" => (true, "Authentication failed due to suspected fraud"),
"100.400.304" => (true, "Invalid input data"),
"100.550.312" => (true, "Amount is outside allowed ticket size boundaries"),
"200.300.404" => (true, "Invalid or missing parameter"),
"300.100.100" => (
true,
Expand All @@ -377,13 +378,16 @@ fn is_payment_failed(payment_status: &str) -> (bool, &'static str) {
"800.100.153" => (true, "Transaction declined (invalid CVV)"),
"800.100.155" => (true, "Transaction declined (amount exceeds credit)"),
"800.100.157" => (true, "Transaction declined (wrong expiry date)"),
"800.100.158" => (true, "transaction declined (suspecting manipulation)"),
"800.100.160" => (true, "transaction declined (card blocked)"),
"800.100.162" => (true, "Transaction declined (limit exceeded)"),
"800.100.163" => (
true,
"Transaction declined (maximum transaction frequency exceeded)",
),
"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)"),
"800.100.172" => (true, "Transaction declined (account blocked)"),
"800.100.190" => (true, "Transaction declined (invalid configuration data)"),
"800.120.100" => (true, "Rejected by throttling"),
Expand Down

0 comments on commit e889749

Please sign in to comment.