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: consider status of payment method before filtering wallets in list pm (#7004)
Chethan Raod2212cb7eafa
diff --git a/crates/router/src/core/payment_methods/cards.rs b/crates/router/src/core/payment_methods/cards.rsindex 164c0e9557..deae78b554 100644--- a/crates/router/src/core/payment_methods/cards.rs+++ b/crates/router/src/core/payment_methods/cards.rs@@ -3470,12 +3470,14 @@ pub async fn list_payment_methods(.any(|mca| mca.payment_method == enums::PaymentMethod::Wallet);if wallet_pm_exists {match db- .find_payment_method_by_customer_id_merchant_id_list(+ .find_payment_method_by_customer_id_merchant_id_status(&((&state).into()),&key_store,- &customer.customer_id,- merchant_account.get_id(),+ &customer.customer_id,+ merchant_account.get_id(),+ common_enums::PaymentMethodStatus::Active,None,+ merchant_account.storage_scheme,).await{