diff --git a/Cargo.lock b/Cargo.lock index bb51391614..6e5967aede 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -6146,4 +6146,4 @@ dependencies = [ "cc", "libc", "pkg-config", -] +] \ No newline at end of file diff --git a/crates/router/src/compatibility/stripe/payment_intents/types.rs b/crates/router/src/compatibility/stripe/payment_intents/types.rs index 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, + pub address: Option, pub email: Option, pub name: Option, pub phone: Option>, @@ -39,8 +39,17 @@ impl From 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, + }), } } }