-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
feat(router): profile specific fallback derivation while routing payments #2806
feat(router): profile specific fallback derivation while routing payments #2806
Conversation
…ub.com/juspay/hyperswitch into feat/profile_specific_fallback_routing
83acfcf
…ub.com/juspay/hyperswitch into feat/profile_specific_fallback_routing
…ub.com/juspay/hyperswitch into feat/profile_specific_fallback_routing
let mca = state | ||
.store | ||
.insert_merchant_connector_account(merchant_connector_account, &key_store) | ||
.await | ||
.to_duplicate_response( | ||
errors::ApiErrorResponse::DuplicateMerchantConnectorAccount { | ||
profile_id, | ||
profile_id: profile_id.clone(), | ||
connector_name: req.connector_name.to_string(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we have to use merchant_connector_id here. There can be many connectors with the same name
cc: @vspecky
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We will make this change in next PR as we have discussed.
bcf1a57
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The events generation code seems good,
Type of Change
Description
default-fallbacks
are defined specific to profile i.e every profile will correspond to different fallbacks and while deriving the fallbacks we are doing that based on profile.Additional Changes
Motivation and Context
How did you test it?
The tests will be same as this PR:
https://github.com/juspay/hyperswitch-cloud/pull/2949
Checklist
cargo +nightly fmt --all
cargo clippy