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): [fiuu] fix error propogation in webhook flow (#13086)
Vani Gupta6afa56cba8f4
diff --git a/crates/hyperswitch_connectors/src/connectors/fiuu.rs b/crates/hyperswitch_connectors/src/connectors/fiuu.rsindex bc92e4c6fb..315b4a1b59 100644--- a/crates/hyperswitch_connectors/src/connectors/fiuu.rs+++ b/crates/hyperswitch_connectors/src/connectors/fiuu.rs@@ -907,12 +907,12 @@ impl webhooks::IncomingWebhook for Fiuu {let resource: FiuuWebhooksResponse = if header == "application/x-www-form-urlencoded" {parse_and_log_keys_in_url_encoded_response::<FiuuWebhooksResponse>(request.body);serde_urlencoded::from_bytes::<FiuuWebhooksResponse>(request.body)- .change_context(errors::ConnectorError::WebhookEventTypeNotFound)?+ .change_context(errors::ConnectorError::WebhookResponseEncodingFailed)?} else {request.body.parse_struct("fiuu::FiuuWebhooksResponse")- .change_context(errors::ConnectorError::WebhookEventTypeNotFound)?+ .change_context(errors::ConnectorError::WebhookResponseEncodingFailed)?};match resource {