refactor(router): include payment method type in connector choice for session flow (#1036)

This commit is contained in:
ItsMeShashank
2023-05-08 14:45:28 +05:30
committed by GitHub
parent ab55d21013
commit 73b8988322
4 changed files with 27 additions and 10 deletions

View File

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