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(core): Update setup_future_usage in payment_update_intent flow (#10243)

CHALLA NISHANTH BABU23bc483c379a
diff --git a/crates/router/src/core/payments/operations/payment_update_intent.rs b/crates/router/src/core/payments/operations/payment_update_intent.rs
index b7d7b77c78..f169792946 100644
--- a/crates/router/src/core/payments/operations/payment_update_intent.rs
+++ b/crates/router/src/core/payments/operations/payment_update_intent.rs
@@ -299,6 +299,7 @@ impl<F: Send + Clone> GetTracker<F, payments::PaymentIntentData<F>, PaymentsUpda
active_attempt_id,
enable_partial_authorization: enable_partial_authorization
.or(payment_intent.enable_partial_authorization),
+ setup_future_usage: setup_future_usage.unwrap_or(payment_intent.setup_future_usage),
..payment_intent
};