fix(payouts): add should_continue flag for propagating error for each call#9531
Merged
likhinbopanna merged 1 commit intomainfrom Oct 10, 2025
Merged
Conversation
Changed Files
|
kashif-m
approved these changes
Sep 24, 2025
sai-harsha-vardhan
approved these changes
Sep 26, 2025
chaitak-gorai
pushed a commit
that referenced
this pull request
Oct 16, 2025
drdholu
pushed a commit
to drdholu/hyperswitch
that referenced
this pull request
Oct 30, 2025
aadityaguptaa
pushed a commit
that referenced
this pull request
Nov 10, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Type of Change
Description
Paypal requires creation of access token before payment/payouts in its flow.
In Access token flow, we do get error response
The error response gets updated on router data but we don’t do a early return based on this condition thus this gets overwritten by payout’s response.
In this case, even if access token is not generated (null), it still goes to payout create flow and fails at connector service with missing value (5xx) (edited)
Additional Changes
Motivation and Context
How did you test it?
Tested through Postman:
incorrect credentialsIt should give out an 2xx with failed response:
Checklist
cargo +nightly fmt --allcargo clippy