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: change precedence order in address that we send to ucs (#9269)

Uzair Khana2b180e39368
diff --git a/crates/router/src/core/unified_connector_service/transformers.rs b/crates/router/src/core/unified_connector_service/transformers.rs
index dec4281e7a..9cc94c4a86 100644
--- a/crates/router/src/core/unified_connector_service/transformers.rs
+++ b/crates/router/src/core/unified_connector_service/transformers.rs
@@ -967,8 +967,8 @@ impl ForeignTryFrom<hyperswitch_domain_models::payment_address::PaymentAddress>
}
});
Ok(Self {
- shipping_address: shipping.or(unified_payment_method_billing.clone()),
- billing_address: billing.or(unified_payment_method_billing),
+ shipping_address: shipping,
+ billing_address: unified_payment_method_billing.or(billing),
})
}
}