update session_state based on requirement

This commit is contained in:
Shivansh Mathur
2025-10-21 12:27:11 +05:30
parent edb56ae97a
commit 2aa44180d8

View File

@ -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,