Skip to content

Commit 0bf36a5

Browse files
committed
refactor: update filter logic
1 parent f5e4934 commit 0bf36a5

File tree

1 file changed

+1
-4
lines changed
  • crates/router/src/core/payment_methods

1 file changed

+1
-4
lines changed

crates/router/src/core/payment_methods/cards.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4539,15 +4539,12 @@ pub async fn filter_payment_methods(
45394539
if payment_attempt
45404540
.and_then(|attempt| attempt.mandate_details.as_ref())
45414541
.is_some()
4542-
|| (payment_intent
4542+
|| payment_intent
45434543
.and_then(|intent| intent.setup_future_usage)
45444544
.map(|future_usage| {
45454545
future_usage == common_enums::FutureUsage::OffSession
45464546
})
45474547
.unwrap_or(false)
4548-
&& payment_attempt
4549-
.and_then(|attempt| attempt.customer_acceptance.as_ref())
4550-
.is_some())
45514548
{
45524549
payment_intent.map(|intent| intent.amount).map(|amount| {
45534550
if amount == MinorUnit::zero() {

0 commit comments

Comments
 (0)