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(payments): preserve pm context during new mandate setup (#14872)

Kashifb29755e88ed1
diff --git a/crates/router/src/core/payments/helpers.rs b/crates/router/src/core/payments/helpers.rs
index 1db01cccec..d8b5b92a5b 100644
--- a/crates/router/src/core/payments/helpers.rs
+++ b/crates/router/src/core/payments/helpers.rs
@@ -486,7 +486,7 @@ pub async fn get_token_pm_type_mandate_details(
mandate_data.clone(),
None,
None,
- None,
+ pm_info,
),
Some(api::MandateTransactionType::RecurringMandateTransaction) => {
match &request.recurring_details {