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(webhooks): handling errors inside source verification (#1994)
Nishant Joshif690c5f3ead6
diff --git a/crates/router/src/core/webhooks.rs b/crates/router/src/core/webhooks.rsindex a26d4db3e4..c605afd525 100644--- a/crates/router/src/core/webhooks.rs+++ b/crates/router/src/core/webhooks.rs@@ -803,6 +803,13 @@ pub async fn webhooks_core<W: types::OutgoingWebhookType>(object_ref_id.clone(),).await+ .or_else(|error| match error.current_context() {+ errors::ConnectorError::WebhookSourceVerificationFailed => {+ logger::error!(?error, "Source Verification Failed");+ Ok(false)+ }+ _ => Err(error),+ }).switch().attach_printable("There was an issue in incoming webhook source verification")?;