fix: invalidate surcharge cache during update#6907
Merged
Gnanasundari24 merged 2 commits intomainfrom Feb 4, 2025
Merged
Conversation
2 tasks
Aprabhat19
approved these changes
Jan 22, 2025
Narayanbhat166
approved these changes
Jan 22, 2025
pixincreate
added a commit
that referenced
this pull request
Feb 4, 2025
…-connectors * 'main' of github.com:juspay/hyperswitch: ci: disable stripe in cypress (#7183) fix(router): [Cybersource] add flag to indicate final capture (#7085) fix: invalidate surcharge cache during update (#6907) chore(version): 2025.02.04.0 fix(samsung_pay): populate `payment_method_data` in the payment response (#7095) feat(router): add core changes for external authentication flow through unified_authentication_service (#7063) fix(connector): [NETCETERA] add `sdk-type` and `default-sdk-type` in netcetera authentication request (#7156)
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
When surcharge rules where updated or deleted, the in memory cache was being invalidated using the wrong key. Fixed that issue in this PR.
Additional Changes
Motivation and Context
How did you test it?
should get status code 200 response.
Appropriate surcharge must be applied to each of the payment method.
Appropriate surcharge must be applied to each of the payment method.
Checklist
cargo +nightly fmt --allcargo clippy