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(router): handle dispute webhook validation failure with 4xx response (#11607)
Akshaya Shankar40a0389c248f
diff --git a/crates/router/src/core/webhooks/incoming.rs b/crates/router/src/core/webhooks/incoming.rsindex 5778a37bfa..e0351bb750 100644--- a/crates/router/src/core/webhooks/incoming.rs+++ b/crates/router/src/core/webhooks/incoming.rs@@ -2353,7 +2353,7 @@ pub async fn get_or_update_dispute_object(dispute_details.dispute_stage,dispute_status,)- .change_context(errors::ApiErrorResponse::WebhookProcessingFailure)+ .change_context(errors::ApiErrorResponse::WebhookBadRequest).attach_printable("dispute stage and status validation failed")?;let update_dispute = diesel_models::dispute::DisputeUpdate::Update {dispute_stage: dispute_details.dispute_stage,