Skip to content

Commit

Permalink
fix(connector): [trustpay] add missing error_codes (#2204)
Browse files Browse the repository at this point in the history
  • Loading branch information
SamraatBansal authored Sep 20, 2023
1 parent 3efce90 commit 8098322
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crates/router/src/connector/trustpay/transformers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -411,6 +411,7 @@ fn is_payment_failed(payment_status: &str) -> (bool, &'static str) {
"400.001.601" => (true, "Transaction declined (auth. declined)"),
"400.001.602" => (true, "Invalid transaction"),
"400.001.603" => (true, "Invalid transaction"),
"400.003.600" => (true, "No description available."),
"700.400.200" => (
true,
"Cannot refund (refund volume exceeded or tx reversed or invalid workflow)",
Expand All @@ -434,6 +435,7 @@ fn is_payment_failed(payment_status: &str) -> (bool, &'static str) {
"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.100.202" => (true, "Account Closed"),
"800.120.100" => (true, "Rejected by throttling"),
"800.300.401" => (true, "Bin blacklisted"),
"800.700.100" => (
Expand Down

0 comments on commit 8098322

Please sign in to comment.