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(router): set the eligible connector in the payment attempt for nti based mit flow (#6347)

Shankar Singh C1a3d0a60f4e3
diff --git a/crates/router/src/core/payments.rs b/crates/router/src/core/payments.rs
index fc747bfa59..fd45c475b6 100644
--- a/crates/router/src/core/payments.rs
+++ b/crates/router/src/core/payments.rs
@@ -4318,6 +4318,10 @@ where
}
};
+ // Set the eligible connector in the attempt
+ payment_data
+ .set_connector_in_payment_attempt(Some(eligible_connector_data.connector_name.to_string()));
+
// Set `NetworkMandateId` as the MandateId
payment_data.set_mandate_id(payments_api::MandateIds {
mandate_id: None,