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
feat(connector): [Checkout] add support for external authentication for checkout connector (#4006)
Sai Harsha Vardhan142a22c752a7
diff --git a/crates/router/src/connector/checkout/transformers.rs b/crates/router/src/connector/checkout/transformers.rsindex d77b7113f7..4c03299298 100644--- a/crates/router/src/connector/checkout/transformers.rs+++ b/crates/router/src/connector/checkout/transformers.rs@@ -259,6 +259,10 @@ pub enum CheckoutPaymentIntent {pub struct CheckoutThreeDS {enabled: bool,force_3ds: bool,+ eci: Option<String>,+ cryptogram: Option<String>,+ xid: Option<String>,+ version: Option<String>,}impl TryFrom<&types::ConnectorAuthType> for CheckoutAuthType {@@ -380,14 +384,24 @@ impl TryFrom<&CheckoutRouterData<&types::PaymentsAuthorizeRouterData>> for Payme)),}?;+ let authentication_data = item.router_data.request.authentication_data.as_ref();+let three_ds = match item.router_data.auth_type {enums::AuthenticationType::ThreeDs => CheckoutThreeDS {enabled: true,force_3ds: true,+ eci: authentication_data.and_then(|auth| auth.eci.clone()),+ cryptogram: authentication_data.and_then(|auth| auth.cavv.clone()),+ xid: authentication_data.map(|auth| auth.threeds_server_transaction_id.clone()),+ version: authentication_data.map(|auth| auth.message_version.clone()),},enums::AuthenticationType::NoThreeDs => CheckoutThreeDS {enabled: false,force_3ds: false,+ eci: None,+ cryptogram: None,+ xid: None,+ version: None,},};