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

refactor(router): use billing address for payment method list filters as opposed to shipping address (#2176)

ItsMeShashankb3d5d3b3dcdd
diff --git a/crates/router/src/core/payment_methods/cards.rs b/crates/router/src/core/payment_methods/cards.rs
index d74a332056..83d2fd1361 100644
--- a/crates/router/src/core/payment_methods/cards.rs
+++ b/crates/router/src/core/payment_methods/cards.rs
@@ -888,7 +888,7 @@ pub async fn list_payment_methods(
&mut response,
payment_intent.as_ref(),
payment_attempt.as_ref(),
- shipping_address.as_ref(),
+ billing_address.as_ref(),
mca.connector_name,
pm_config_mapping,
&state.conf.mandates.supported_payment_methods,