refactor(routing): update configs on updation of mca#9659
Merged
Gnanasundari24 merged 8 commits intomainfrom Oct 7, 2025
Merged
refactor(routing): update configs on updation of mca#9659Gnanasundari24 merged 8 commits intomainfrom
Gnanasundari24 merged 8 commits intomainfrom
Conversation
Changed Files
|
Removed outdated conflict markers from the file.
Contributor
|
All checks are failing @prajjwalkumar17 |
Sarthak1799
previously approved these changes
Oct 3, 2025
ShankarSinghC
previously approved these changes
Oct 3, 2025
44810a9
Sarthak1799
approved these changes
Oct 6, 2025
ShankarSinghC
approved these changes
Oct 6, 2025
This was referenced Oct 6, 2025
UdayPandey01
pushed a commit
to UdayPandey01/hyperswitch
that referenced
this pull request
Oct 8, 2025
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com> Co-authored-by: Gnanasundari24 <118818938+Gnanasundari24@users.noreply.github.com>
aadityaguptaa
pushed a commit
that referenced
this pull request
Nov 10, 2025
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com> Co-authored-by: Gnanasundari24 <118818938+Gnanasundari24@users.noreply.github.com>
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
This pull request introduces a new helper function to update the default fallback connector configuration whenever a merchant connector account (MCA) is updated. This ensures that changes to connector status (such as disabling or enabling) are accurately reflected in both merchant and profile configurations. The changes also include necessary imports and function calls to integrate this logic into the connector update flow.
Connector fallback configuration updates:
update_default_fallback_on_mca_updatefunction inrouting/helpers.rsto update merchant and profile default connector configurations based on the status of the updated MCA. The function ensures that disabled or inactive connectors are removed from the defaults, and enabled connectors are added if not already present.update_connectorflow inadmin.rs, so it is triggered automatically after connector updates.Imports and code organization:
update_default_fallback_on_mca_updateand related types inadmin.rsandhelpers.rsto support the new logic. [1] [2]Additional Changes
How did you test it?
Checklist
cargo +nightly fmt --allcargo clippy