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

feat(connector): skip 3ds in worldpayXML if authentication data is provided via external 3ds (#15229)

Sahkal Poddar010b239a2d7c
diff --git a/crates/hyperswitch_connectors/src/connectors/worldpayxml.rs b/crates/hyperswitch_connectors/src/connectors/worldpayxml.rs
index 675bb71aa3..36b1ba9f4a 100644
--- a/crates/hyperswitch_connectors/src/connectors/worldpayxml.rs
+++ b/crates/hyperswitch_connectors/src/connectors/worldpayxml.rs
@@ -1613,8 +1613,10 @@ impl ConnectorSpecifications for Worldpayxml {
auth_type,
connector_meta_data: _,
} => {
+ // Skip WorldpayXML's own 3DS when an external authentication already produced the result
// Googlepay would require 3ds if cryptogram is not present which indicates it is Fpan
auth_type == common_enums::AuthenticationType::ThreeDs
+ && request_data.authentication_data.is_none()
&& match request_data.payment_method_data {
PaymentMethodData::Card(_) => true,
PaymentMethodData::Wallet(