mirror of
				https://github.com/juspay/hyperswitch.git
				synced 2025-10-31 10:06:32 +08:00 
			
		
		
		
	refactor(core): made provider field in ctp_service_details backward compatible (#7705)
This commit is contained in:
		| @ -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) | ||||
|  | ||||
| @ -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(()) | ||||
|     } | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Sahkal Poddar
					Sahkal Poddar