mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-02 04:04:43 +08:00
update session_state based on requirement
This commit is contained in:
@ -4313,7 +4313,7 @@ where
|
|||||||
// Process through Direct gateway
|
// Process through Direct gateway
|
||||||
(GatewaySystem::Direct, _) | (GatewaySystem::UnifiedConnectorService, true) => {
|
(GatewaySystem::Direct, _) | (GatewaySystem::UnifiedConnectorService, true) => {
|
||||||
process_through_direct(
|
process_through_direct(
|
||||||
&updated_state,
|
state,
|
||||||
req_state,
|
req_state,
|
||||||
merchant_context,
|
merchant_context,
|
||||||
connector,
|
connector,
|
||||||
@ -5385,8 +5385,15 @@ where
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
let session_state = if matches!(execution, GatewaySystem::ShadowUnifiedConnectorService) {
|
||||||
|
&updated_state
|
||||||
|
} else {
|
||||||
|
state
|
||||||
|
};
|
||||||
|
|
||||||
call_connector_service(
|
call_connector_service(
|
||||||
&updated_state,
|
session_state,
|
||||||
req_state,
|
req_state,
|
||||||
merchant_context,
|
merchant_context,
|
||||||
connector,
|
connector,
|
||||||
|
|||||||
Reference in New Issue
Block a user