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(constraint_graph): handle PML for cases where setup_future_usage is not passed in payments (#6810)

Prajjwal Kumare8bfd0e22703
diff --git a/crates/router/src/core/payment_methods/cards.rs b/crates/router/src/core/payment_methods/cards.rs
index 2dba211e24..9d8fbf58f5 100644
--- a/crates/router/src/core/payment_methods/cards.rs
+++ b/crates/router/src/core/payment_methods/cards.rs
@@ -4593,7 +4593,7 @@ pub async fn filter_payment_methods(
.map(|future_usage| {
future_usage == common_enums::FutureUsage::OnSession
})
- .unwrap_or(false)
+ .unwrap_or(true)
})
.and_then(|res| {
res.then(|| {