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): pass external 3DS transaction status to Checkout (#15319)
Aniket Burmana7ccf058e5c1
diff --git a/crates/hyperswitch_connectors/src/connectors/checkout/transformers.rs b/crates/hyperswitch_connectors/src/connectors/checkout/transformers.rsindex 4a01fa9a76..940a17b0ca 100644--- a/crates/hyperswitch_connectors/src/connectors/checkout/transformers.rs+++ b/crates/hyperswitch_connectors/src/connectors/checkout/transformers.rs@@ -684,6 +684,8 @@ pub struct CheckoutThreeDS {cryptogram: Option<Secret<String>>,xid: Option<String>,version: Option<String>,+ #[serde(skip_serializing_if = "Option::is_none")]+ status: Option<enums::TransactionStatus>,challenge_indicator: CheckoutChallengeIndicator,}@@ -1158,6 +1160,7 @@ impl TryFrom<&CheckoutRouterData<&PaymentsAuthorizeRouterData>> for PaymentsRequcryptogram: Some(auth.cavv.clone()),xid: auth.threeds_server_transaction_id.clone(),version: auth.message_version.clone().map(|v| v.to_string()),+ status: auth.transaction_status.clone(),challenge_indicator: CheckoutChallengeIndicator::NoPreference,}} else {@@ -1169,6 +1172,7 @@ impl TryFrom<&CheckoutRouterData<&PaymentsAuthorizeRouterData>> for PaymentsRequcryptogram: None,xid: None,version: None,+ status: None,challenge_indicator,},enums::AuthenticationType::NoThreeDs => CheckoutThreeDS {@@ -1178,6 +1182,7 @@ impl TryFrom<&CheckoutRouterData<&PaymentsAuthorizeRouterData>> for PaymentsRequcryptogram: None,xid: None,version: None,+ status: None,challenge_indicator: CheckoutChallengeIndicator::NoPreference,},}