Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(core): [payouts] failure of payout retrieve when token is expired #5362

Merged
merged 1 commit into from
Jul 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions crates/router/src/core/payouts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -2397,6 +2396,7 @@ pub async fn make_payout_data(
None => None,
}
}
payouts::PayoutRequest::PayoutRetrieveRequest(_) => None,
};

let payout_link = payouts
Expand Down
Loading