refactor(core): made provider field in ctp_service_details backward compatible (#7705)

This commit is contained in:
Sahkal Poddar
2025-04-03 13:10:54 +05:30
committed by GitHub
parent b8f66155d4
commit ab3dcea82f
5 changed files with 24 additions and 13 deletions

View File

@ -6817,7 +6817,13 @@ pub async fn decide_action_for_unified_authentication_service<F: Clone>(
&& business_profile.is_click_to_pay_enabled
&& payment_data.service_details.is_some()
{
if *do_authorisation_confirmation {
let should_do_uas_confirmation_call = payment_data
.service_details
.as_ref()
.map(|details| details.is_network_confirmation_call_required())
.unwrap_or(true);
if *do_authorisation_confirmation && should_do_uas_confirmation_call {
Some(UnifiedAuthenticationServiceFlow::ClickToPayConfirmation)
} else {
Some(UnifiedAuthenticationServiceFlow::ClickToPayInitiate)

View File

@ -233,7 +233,8 @@ impl<F: Clone + Sync> UnifiedAuthenticationService<F> for ClickToPay {
UNIFIED_AUTHENTICATION_SERVICE.to_string(),
authentication_confirmation_router_data,
)
.await?;
.await
.ok(); // marking this as .ok() since this is not a required step at our end for completing the transaction
Ok(())
}