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(payment_methods): use processor key store when listing MCAs in customer payment method list (#12598)

Ankit Kumar Gupta5fcd1e4923ca
diff --git a/crates/router/src/core/payment_methods/cards.rs b/crates/router/src/core/payment_methods/cards.rs
index e2951e2708..e532a8228a 100644
--- a/crates/router/src/core/payment_methods/cards.rs
+++ b/crates/router/src/core/payment_methods/cards.rs
@@ -5267,7 +5267,7 @@ pub async fn list_customer_payment_method(
.find_merchant_connector_account_by_merchant_id_and_disabled_list(
platform.get_processor().get_account().get_id(),
true,
- platform.get_provider().get_key_store(),
+ platform.get_processor().get_key_store(),
)
.await
.change_context(errors::ApiErrorResponse::MerchantConnectorAccountNotFound {