Skip to content

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

fix(ucs): thread connector_transaction_id into refund error responses (#17369) (#13052)

10X-GRACE9ae7da47e25d
diff --git a/crates/router/src/core/unified_connector_service.rs b/crates/router/src/core/unified_connector_service.rs
index cea2ec52f7..0734ebde41 100644
--- a/crates/router/src/core/unified_connector_service.rs
+++ b/crates/router/src/core/unified_connector_service.rs
@@ -3111,7 +3111,7 @@ pub async fn call_unified_connector_service_for_refund_execute(
reason: reason.clone(),
status_code,
attempt_status: None,
- connector_transaction_id: None,
+ connector_transaction_id: inner.connector_transaction_id.clone(),
connector_response_reference_id: None,
network_decline_code: network_decline_code.clone(),
network_advice_code: network_advice_code.clone(),
@@ -3247,7 +3247,7 @@ pub async fn call_unified_connector_service_for_refund_sync(
reason: reason.clone(),
status_code,
attempt_status: None,
- connector_transaction_id: None,
+ connector_transaction_id: inner.connector_transaction_id.clone(),
connector_response_reference_id: None,
network_decline_code: network_decline_code.clone(),
network_advice_code: network_advice_code.clone(),