Skip to content

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

fix(connector): [PowerTranz] removing optional field shipping address (#1737)

Arjun Karthik63eac1fdd6ca
diff --git a/crates/router/src/connector/powertranz/transformers.rs b/crates/router/src/connector/powertranz/transformers.rs
index 5f738192b5..45b7399c9a 100644
--- a/crates/router/src/connector/powertranz/transformers.rs
+++ b/crates/router/src/connector/powertranz/transformers.rs
@@ -23,7 +23,6 @@ pub struct PowertranzPaymentsRequest {
source: Source,
order_identifier: String,
billing_address: Option<PowertranzAddressDetails>,
- shipping_address: Option<PowertranzAddressDetails>,
extended_data: Option<ExtendedData>,
}
@@ -102,7 +101,6 @@ impl TryFrom<&types::PaymentsAuthorizeRouterData> for PowertranzPaymentsRequest
)),
}?;
let billing_address = get_address_details(&item.address.billing, &item.request.email);
- let shipping_address = get_address_details(&item.address.shipping, &item.request.email);
let (three_d_secure, extended_data) = match item.auth_type {
diesel_models::enums::AuthenticationType::ThreeDs => {
(true, Some(ExtendedData::try_from(item)?))
@@ -121,7 +119,6 @@ impl TryFrom<&types::PaymentsAuthorizeRouterData> for PowertranzPaymentsRequest
source,
order_identifier: item.payment_id.clone(),
billing_address,
- shipping_address,
extended_data,
})
}