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
feat(connector): [Checkout] accept connector_transaction_id in 2xx and 4xx error_response of connector flows (#3959)
Swangi Kumarif6f6a0c0f727
diff --git a/crates/router/src/connector/checkout.rs b/crates/router/src/connector/checkout.rsindex 0d26584c43..a21956b67d 100644--- a/crates/router/src/connector/checkout.rs+++ b/crates/router/src/connector/checkout.rs@@ -140,7 +140,7 @@ impl ConnectorCommon for Checkout {.map(|errors| errors.join(" & ")).or(response.error_type),attempt_status: None,- connector_transaction_id: None,+ connector_transaction_id: response.request_id,})}}diff --git a/crates/router/src/connector/checkout/transformers.rs b/crates/router/src/connector/checkout/transformers.rsindex 7d2d4f7f72..e0e6c5155b 100644--- a/crates/router/src/connector/checkout/transformers.rs+++ b/crates/router/src/connector/checkout/transformers.rs@@ -616,7 +616,7 @@ impl TryFrom<types::PaymentsResponseRouterData<PaymentsResponse>>.unwrap_or_else(|| consts::NO_ERROR_MESSAGE.to_string()),reason: item.response.response_summary,attempt_status: None,- connector_transaction_id: None,+ connector_transaction_id: Some(item.response.id.clone()),})} else {None@@ -668,7 +668,7 @@ impl TryFrom<types::PaymentsSyncResponseRouterData<PaymentsResponse>>.unwrap_or_else(|| consts::NO_ERROR_MESSAGE.to_string()),reason: item.response.response_summary,attempt_status: None,- connector_transaction_id: None,+ connector_transaction_id: Some(item.response.id.clone()),})} else {None