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
Rust adyenbeginner-friendlyfeaturedfinancefintechhacktoberfesthigh-performanceopen-sourceorchestrationpaymentpayment-gatewaypayment-integrationpayment-processingpaymentspayments-platformrestful-apirustsdkstripeworks-with-react
fix(core): Fix connector mandate details for setup mandate (#6096)
Amisha Prabhat8c128624f642
diff --git a/crates/router/src/core/payments/operations/payment_response.rs b/crates/router/src/core/payments/operations/payment_response.rsindex fc54ba5e64..b163947ae0 100644--- a/crates/router/src/core/payments/operations/payment_response.rs+++ b/crates/router/src/core/payments/operations/payment_response.rs@@ -924,7 +924,9 @@ impl<F: Clone> PostUpdateTracker<F, PaymentData<F>, types::SetupMandateRequestDa})?;let merchant_connector_id = payment_data.payment_attempt.merchant_connector_id.clone();let tokenization::SavePaymentMethodDataResponse {- payment_method_id, ..+ payment_method_id,+ mandate_reference_id,+ ..} = Box::pin(tokenization::save_payment_method(state,connector_name,@@ -954,6 +956,10 @@ impl<F: Clone> PostUpdateTracker<F, PaymentData<F>, types::SetupMandateRequestDa.await?;payment_data.payment_attempt.payment_method_id = payment_method_id;payment_data.payment_attempt.mandate_id = mandate_id;+ payment_data.set_mandate_id(api_models::payments::MandateIds {+ mandate_id: None,+ mandate_reference_id,+ });Ok(())}}