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(payments): update apply_filters_on_payments to include profile_id… (#14567)
Shivansh Mathurc934d28c22cb
diff --git a/crates/router/src/core/payments/list.rs b/crates/router/src/core/payments/list.rsindex dcc1aff4d5..90df0af05a 100644--- a/crates/router/src/core/payments/list.rs+++ b/crates/router/src/core/payments/list.rs@@ -380,13 +380,13 @@ pub async fn revenue_recovery_list_payments(pub async fn apply_filters_on_payments(state: SessionState,platform: domain::Platform,- _profile_id_list: Option<Vec<id_type::ProfileId>>,+ profile_id_list: Option<Vec<id_type::ProfileId>>,constraints: api::PaymentListFilterConstraints,) -> RouterResponse<api::PaymentListResponseV2> {common_utils::metrics::utils::record_operation_time(async {let db: &dyn StorageInterface = state.store.as_ref();- let fetch_constraints = constraints.clone().into();+ let fetch_constraints = (constraints.clone(), profile_id_list).try_into()?;let list: Vec<(storage::PaymentIntent, storage::PaymentAttempt)> = db.get_filtered_payment_intents_attempt(platform.get_processor().get_account().get_id(),