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(payouts): trigger webhook for payout cancel (#11379)

Sakil Mostakd1289505baf1
diff --git a/crates/router/src/core/payouts.rs b/crates/router/src/core/payouts.rs
index e6b41b83bb..11b2b47f57 100644
--- a/crates/router/src/core/payouts.rs
+++ b/crates/router/src/core/payouts.rs
@@ -643,9 +643,7 @@ pub async fn payouts_cancel_core(
.attach_printable("Payout cancellation failed for given Payout request")?;
}
- Ok(services::ApplicationResponse::Json(
- response_handler(&state, &platform, &payout_data).await?,
- ))
+ trigger_webhook_and_handle_response(&state, &platform, &payout_data).await
}
#[instrument(skip_all)]