From 2aa44180d8713580eddc1f48b0671b974b32fcb3 Mon Sep 17 00:00:00 2001 From: Shivansh Mathur Date: Tue, 21 Oct 2025 12:27:11 +0530 Subject: [PATCH] update session_state based on requirement --- crates/router/src/core/payments.rs | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/crates/router/src/core/payments.rs b/crates/router/src/core/payments.rs index e6bae52101..4d4f27f3d0 100644 --- a/crates/router/src/core/payments.rs +++ b/crates/router/src/core/payments.rs @@ -4313,7 +4313,7 @@ where // Process through Direct gateway (GatewaySystem::Direct, _) | (GatewaySystem::UnifiedConnectorService, true) => { process_through_direct( - &updated_state, + state, req_state, merchant_context, connector, @@ -5385,8 +5385,15 @@ where ); } + + let session_state = if matches!(execution, GatewaySystem::ShadowUnifiedConnectorService) { + &updated_state + } else { + state + }; + call_connector_service( - &updated_state, + session_state, req_state, merchant_context, connector,