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 mapping to error code `800.100.165` and `900.100.100` (#2925)
Sakil Mostak8c37a8d857c5
diff --git a/crates/router/src/connector/trustpay/transformers.rs b/crates/router/src/connector/trustpay/transformers.rsindex 5f3fb865d3..e985eff119 100644--- a/crates/router/src/connector/trustpay/transformers.rs+++ b/crates/router/src/connector/trustpay/transformers.rs@@ -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)"),@@ -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, ""),}