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(euclid): change the address taken in SessionFlowRouting from shipping to billing address (#5435)

Prajjwal Kumar9ca9545318d8
diff --git a/crates/router/src/core/payment_methods/cards.rs b/crates/router/src/core/payment_methods/cards.rs
index 70a0a4e4cd..c867824c65 100644
--- a/crates/router/src/core/payment_methods/cards.rs
+++ b/crates/router/src/core/payment_methods/cards.rs
@@ -2553,7 +2553,7 @@ pub async fn list_payment_methods(
}
let sfr = SessionFlowRoutingInput {
state: &state,
- country: shipping_address.clone().and_then(|ad| ad.country),
+ country: billing_address.clone().and_then(|ad| ad.country),
key_store: &key_store,
merchant_account: &merchant_account,
payment_attempt,