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(payouts): change payout_action to retrieve for webhooks (#11206)
Sakil Mostak235c2d982a02
diff --git a/crates/router/src/core/webhooks/incoming.rs b/crates/router/src/core/webhooks/incoming.rsindex 386890eaf0..a9227719ce 100644--- a/crates/router/src/core/webhooks/incoming.rs+++ b/crates/router/src/core/webhooks/incoming.rs@@ -1747,8 +1747,10 @@ async fn process_payout_incoming_webhook(metrics::INCOMING_PAYOUT_WEBHOOK_METRIC.add(1, &[]);let action_req =- payout_models::PayoutRequest::PayoutActionRequest(payout_models::PayoutActionRequest {+ payout_models::PayoutRequest::PayoutRetrieveRequest(payout_models::PayoutRetrieveRequest {payout_id,+ force_sync: None,+ merchant_id: Some(platform.get_processor().get_account().get_id().clone()),});let mut payout_data = Box::pin(payouts::make_payout_data(