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): tolerate source bank recovery failures on retrieval (#15030)

Aniket Burmana774f0faf2e2
diff --git a/crates/router/src/core/payouts.rs b/crates/router/src/core/payouts.rs
index 8d7426ad02..2667dc4270 100644
--- a/crates/router/src/core/payouts.rs
+++ b/crates/router/src/core/payouts.rs
@@ -4125,7 +4125,12 @@ pub async fn make_payout_data(
Some(customer_id),
platform.get_processor().get_key_store(),
)
- .await?;
+ .await
+ .inspect_err(|error| {
+ logger::error!(?error, "Failed to retrieve source bank data")
+ })
+ .ok()
+ .flatten();
(source_bank_data, None, None)
}