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(core): [payouts] failure of payout retrieve when token is expired (#5362)

Sakil Mostak817d06c7faa1
diff --git a/crates/router/src/core/payouts.rs b/crates/router/src/core/payouts.rs
index 4365519aec..b2c883c381 100644
--- a/crates/router/src/core/payouts.rs
+++ b/crates/router/src/core/payouts.rs
@@ -2373,8 +2373,7 @@ pub async fn make_payout_data(
validate_and_get_business_profile(state, &profile_id, merchant_id).await?;
let payout_method_data = match req {
payouts::PayoutRequest::PayoutCreateRequest(r) => r.payout_method_data.to_owned(),
- payouts::PayoutRequest::PayoutRetrieveRequest(_)
- | payouts::PayoutRequest::PayoutActionRequest(_) => {
+ payouts::PayoutRequest::PayoutActionRequest(_) => {
match payout_attempt.payout_token.to_owned() {
Some(payout_token) => {
let customer_id = customer_details
@@ -2397,6 +2396,7 @@ pub async fn make_payout_data(
None => None,
}
}
+ payouts::PayoutRequest::PayoutRetrieveRequest(_) => None,
};
let payout_link = payouts