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(connector): [Adyen] handle empty webhook requests (#13155)
Vani Guptaf9cc035b3fa9
diff --git a/crates/hyperswitch_connectors/src/connectors/adyen.rs b/crates/hyperswitch_connectors/src/connectors/adyen.rsindex e2b042996c..dd4039800c 100644--- a/crates/hyperswitch_connectors/src/connectors/adyen.rs+++ b/crates/hyperswitch_connectors/src/connectors/adyen.rs@@ -2115,6 +2115,10 @@ impl IncomingWebhook for Adyen {request: &IncomingWebhookRequestDetails<'_>,_context: Option<&WebhookContext>,) -> CustomResult<api_models::webhooks::IncomingWebhookEvent, errors::ConnectorError> {+ if request.body.is_empty() {+ return Ok(api_models::webhooks::IncomingWebhookEvent::EndpointVerification);+ }+let notif = get_webhook_object_from_body(request.body).change_context(errors::ConnectorError::WebhookResponseEncodingFailed)?;