Skip to content

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

fix(connector): fix dispute webhook failure bug in checkout during get_webhook_resource_object (#2257)

Hrithikesh1d73be08fb3a
diff --git a/crates/router/src/connector/checkout.rs b/crates/router/src/connector/checkout.rs
index 332de31330..0c1ab2493d 100644
--- a/crates/router/src/connector/checkout.rs
+++ b/crates/router/src/connector/checkout.rs
@@ -1217,7 +1217,7 @@ impl api::IncomingWebhook for Checkout {
.parse_struct("CheckoutWebhookBody")
.change_context(errors::ConnectorError::WebhookEventTypeNotFound)?;
let resource_object = if checkout::is_chargeback_event(&event_type_data.transaction_type)
- && checkout::is_refund_event(&event_type_data.transaction_type)
+ || checkout::is_refund_event(&event_type_data.transaction_type)
{
// if other event, just return the json data.
let resource_object_data: checkout::CheckoutWebhookObjectResource = request