mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-29 00:49:42 +08:00
refactor(router): include payment method type in connector choice for session flow (#1036)
This commit is contained in:
@ -1032,8 +1032,13 @@ where
|
||||
|
||||
let connector = if should_call_connector(operation, payment_data) {
|
||||
Some(match connector_choice {
|
||||
api::ConnectorChoice::SessionMultiple(connectors) => {
|
||||
api::ConnectorCallType::Multiple(connectors)
|
||||
api::ConnectorChoice::SessionMultiple(session_connectors) => {
|
||||
api::ConnectorCallType::Multiple(
|
||||
session_connectors
|
||||
.into_iter()
|
||||
.map(|c| c.connector)
|
||||
.collect(),
|
||||
)
|
||||
}
|
||||
|
||||
api::ConnectorChoice::StraightThrough(straight_through) => connector_selection(
|
||||
|
||||
Reference in New Issue
Block a user