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
Rust adyenbeginner-friendlyfeaturedfinancefintechhacktoberfesthigh-performanceopen-sourceorchestrationpaymentpayment-gatewaypayment-integrationpayment-processingpaymentspayments-platformrestful-apirustsdkstripeworks-with-react
fix(connector): [WorldpayWPG] Mandates Flow for Wallets When Authentication Type is three_ds (#11255)
Vani Gupta20f62f4c81ee
diff --git a/crates/hyperswitch_connectors/src/connectors/worldpayxml.rs b/crates/hyperswitch_connectors/src/connectors/worldpayxml.rsindex d3408a4adc..3c4e5c99e7 100644--- a/crates/hyperswitch_connectors/src/connectors/worldpayxml.rs+++ b/crates/hyperswitch_connectors/src/connectors/worldpayxml.rs@@ -1374,7 +1374,7 @@ static WORLDPAYXML_SUPPORTED_PAYMENT_METHODS: LazyLock<SupportedPaymentMethods>specific_features: Some(api_models::feature_matrix::PaymentMethodSpecificFeatures::Card({api_models::feature_matrix::CardSpecificFeatures {- three_ds: common_enums::FeatureStatus::NotSupported,+ three_ds: common_enums::FeatureStatus::Supported,no_three_ds: common_enums::FeatureStatus::Supported,supported_card_networks: supported_card_network.clone(),}@@ -1393,7 +1393,7 @@ static WORLDPAYXML_SUPPORTED_PAYMENT_METHODS: LazyLock<SupportedPaymentMethods>specific_features: Some(api_models::feature_matrix::PaymentMethodSpecificFeatures::Card({api_models::feature_matrix::CardSpecificFeatures {- three_ds: common_enums::FeatureStatus::NotSupported,+ three_ds: common_enums::FeatureStatus::Supported,no_three_ds: common_enums::FeatureStatus::Supported,supported_card_networks: supported_card_network.clone(),}diff --git a/crates/hyperswitch_connectors/src/connectors/worldpayxml/transformers.rs b/crates/hyperswitch_connectors/src/connectors/worldpayxml/transformers.rsindex c979832e4d..f132fad9fb 100644--- a/crates/hyperswitch_connectors/src/connectors/worldpayxml/transformers.rs+++ b/crates/hyperswitch_connectors/src/connectors/worldpayxml/transformers.rs@@ -1014,7 +1014,7 @@ impl TryFrom<&WorldpayxmlRouterData<&PaymentsAuthorizeRouterData>> for PaymentSelet is_three_ds = item.router_data.is_three_ds();let (additional_threeds_data, session, accept_header, user_agent_header) =- if is_three_ds {+ if is_three_ds && item.router_data.request.is_card() {let additional_threeds_data = Some(AdditionalThreeDSData {df_reference_id: None,javascript_enabled: false,