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(payouts): hide configured amount limits in errors (#15267)
Sakil Mostak551822955c47
diff --git a/crates/router/src/core/payouts/validator.rs b/crates/router/src/core/payouts/validator.rsindex 14c9e946e7..a7e52a7993 100644--- a/crates/router/src/core/payouts/validator.rs+++ b/crates/router/src/core/payouts/validator.rs@@ -374,11 +374,7 @@ pub(crate) fn validate_payout_amount(utils::when(amount < min_amount || amount > max_amount, || {Err(report!(errors::ApiErrorResponse::PreconditionFailed {- message: format!(- "payout amount must be between {} and {} in the currency's lowest denomination",- min_amount.get_amount_as_i64(),- max_amount.get_amount_as_i64(),- ),+ message: "Payout amount is not within configured limits".to_string(),}))})})