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
refactor(payment_methods): add appropriate missing logs (#5190)
Chethan Raoe85407fc5344
diff --git a/crates/router/src/core/payment_methods/cards.rs b/crates/router/src/core/payment_methods/cards.rsindex 41007286b8..1523ac18cb 100644--- a/crates/router/src/core/payment_methods/cards.rs+++ b/crates/router/src/core/payment_methods/cards.rs@@ -2002,6 +2002,8 @@ pub async fn list_payment_methods(cust_pm.payment_method_type == Some(mca.payment_method_type)}))});++ logger::debug!("Filtered out wallet payment method from mca since customer has already saved it");Ok(())}Err(error) => {@@ -3872,6 +3874,9 @@ pub async fn get_card_details_with_locker_fallback(None}} else {+ logger::debug!(+ "Getting card details from locker as it is not found in payment methods table"+ );Some(get_card_details_from_locker(state, pm).await?)})}@@ -3899,6 +3904,9 @@ pub async fn get_card_details_without_locker_fallback(crd.scheme.clone_from(&pm.scheme);crd} else {+ logger::debug!(+ "Getting card details from locker as it is not found in payment methods table"+ );get_card_details_from_locker(state, pm).await?})}