mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-03 21:37:41 +08:00
feat(payments_v2): add payment_confirm_intent api endpoint (#6263)
Co-authored-by: hrithikesh026 <hrithikesh.vm@juspay.in> Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com> Co-authored-by: sai-harsha-vardhan <harsha111hero@gmail.com> Co-authored-by: Shankar Singh C <83439957+ShankarSinghC@users.noreply.github.com> Co-authored-by: spritianeja03 <146620839+spritianeja03@users.noreply.github.com> Co-authored-by: Spriti Aneja <spriti.aneja@juspay.in>
This commit is contained in:
@ -826,6 +826,16 @@ pub async fn perform_eligibility_analysis_with_fallback(
|
||||
Ok(final_selection)
|
||||
}
|
||||
|
||||
#[cfg(feature = "v2")]
|
||||
pub async fn perform_session_flow_routing(
|
||||
session_input: SessionFlowRoutingInput<'_>,
|
||||
transaction_type: &api_enums::TransactionType,
|
||||
) -> RoutingResult<FxHashMap<api_enums::PaymentMethodType, Vec<routing_types::SessionRoutingChoice>>>
|
||||
{
|
||||
todo!()
|
||||
}
|
||||
|
||||
#[cfg(feature = "v1")]
|
||||
pub async fn perform_session_flow_routing(
|
||||
session_input: SessionFlowRoutingInput<'_>,
|
||||
transaction_type: &api_enums::TransactionType,
|
||||
@ -958,6 +968,7 @@ pub async fn perform_session_flow_routing(
|
||||
allowed_connectors,
|
||||
profile_id: &profile_id,
|
||||
};
|
||||
|
||||
let routable_connector_choice_option = perform_session_routing_for_pm_type(
|
||||
&session_pm_input,
|
||||
transaction_type,
|
||||
|
||||
Reference in New Issue
Block a user