Skip to content

Open source, composable payments platform | PCI compliant | SaaS and Self-host options | Enables connectivity to multiple payment, payout, fraud, vault and tokenization providers | Uplifts authorization with intelligent routing and revenue recovery | Reduce payment processing costs with cost observability | Reduces payment ops with reconciliation

fix(core): fixed ctp bug for confirmation and added multi profile support for modular auth (#9545)

Sahkal Poddaracf816d046a3
diff --git a/crates/hyperswitch_connectors/src/connectors/aci/transformers.rs b/crates/hyperswitch_connectors/src/connectors/aci/transformers.rs
index 09f9588513..d8c3e20d6b 100644
--- a/crates/hyperswitch_connectors/src/connectors/aci/transformers.rs
+++ b/crates/hyperswitch_connectors/src/connectors/aci/transformers.rs
@@ -372,10 +372,7 @@ fn get_aci_payment_brand(
Some(common_enums::CardNetwork::UnionPay) => Ok(PaymentBrand::UnionPay),
Some(common_enums::CardNetwork::Maestro) => Ok(PaymentBrand::Maestro),
Some(unsupported_network) => Err(errors::ConnectorError::NotSupported {
- message: format!(
- "Card network {:?} is not supported by ACI",
- unsupported_network
- ),
+ message: format!("Card network {unsupported_network} is not supported by ACI"),
connector: "ACI",
})?,
None => {
diff --git a/crates/router/src/core/payments.rs b/crates/router/src/core/payments.rs
index d960c23138..e04b790ab1 100644
--- a/crates/router/src/core/payments.rs
+++ b/crates/router/src/core/payments.rs
@@ -6750,7 +6750,7 @@ where
let should_do_uas_confirmation_call = service_details
.as_ref()
.map(|details| details.is_network_confirmation_call_required())
- .unwrap_or(true);
+ .unwrap_or(false);
if should_do_uas_confirmation_call
&& (payment_intent.status == storage_enums::IntentStatus::Succeeded
|| payment_intent.status == storage_enums::IntentStatus::Failed)
diff --git a/crates/router/src/core/unified_authentication_service.rs b/crates/router/src/core/unified_authentication_service.rs
index 77ee841528..8c7086b7fd 100644
--- a/crates/router/src/core/unified_authentication_service.rs
+++ b/crates/router/src/core/unified_authentication_service.rs
@@ -914,7 +914,7 @@ pub async fn authentication_eligibility_core(
None,
None,
&merchant_context,
- None,
+ req.profile_id.as_ref(),
db,
true,
)