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(compatibility): update BillingDetails mappings in SCL (#1926)
Kritik Modia48f9865bcd2
diff --git a/Cargo.lock b/Cargo.lockindex bb51391614..6e5967aede 100644--- a/Cargo.lock+++ b/Cargo.lock@@ -6146,4 +6146,4 @@ dependencies = ["cc","libc","pkg-config",-]+]\ No newline at end of filediff --git a/crates/router/src/compatibility/stripe/payment_intents/types.rs b/crates/router/src/compatibility/stripe/payment_intents/types.rsindex 51ccf61377..02b6977f94 100644--- a/crates/router/src/compatibility/stripe/payment_intents/types.rs+++ b/crates/router/src/compatibility/stripe/payment_intents/types.rs@@ -24,7 +24,7 @@ use crate::{#[derive(Default, Serialize, PartialEq, Eq, Deserialize, Clone)]pub struct StripeBillingDetails {- pub address: Option<payments::AddressDetails>,+ pub address: Option<AddressDetails>,pub email: Option<Email>,pub name: Option<String>,pub phone: Option<masking::Secret<String>>,@@ -39,8 +39,17 @@ impl From<StripeBillingDetails> for payments::Address {address.country.as_ref().map(|country| country.to_string())}),}),-- address: details.address,+ address: details.address.map(|address| payments::AddressDetails {+ city: address.city,+ country: address.country,+ line1: address.line1,+ line2: address.line2,+ zip: address.postal_code,+ state: address.state,+ first_name: None,+ line3: None,+ last_name: None,+ }),}}}