Open source, composable payments platform | PCI compliant | SaaS and Self-host options | Enables connectivity to multiple payment, payout, fraud, vault and tokenization providers | Uplifts authorization with intelligent routing and revenue recovery | Reduce payment processing costs with cost observability | Reduces payment ops with reconciliation
Rust adyenbeginner-friendlyfeaturedfinancefintechhacktoberfesthigh-performanceopen-sourceorchestrationpaymentpayment-gatewaypayment-integrationpayment-processingpaymentspayments-platformrestful-apirustsdkstripeworks-with-react
fix(connector): [Trustpay] Add missing payment status codes in failure check (#1997)
Sai Harsha Vardhane8897491b139
diff --git a/crates/router/src/connector/trustpay/transformers.rs b/crates/router/src/connector/trustpay/transformers.rsindex deacf17882..d1efed1474 100644--- a/crates/router/src/connector/trustpay/transformers.rs+++ b/crates/router/src/connector/trustpay/transformers.rs@@ -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,@@ -377,6 +378,8 @@ 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,@@ -384,6 +387,7 @@ fn is_payment_failed(payment_status: &str) -> (bool, &'static str) {),"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"),