-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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: add routing support for v2 sdk session flow #6763
feat: add routing support for v2 sdk session flow #6763
Conversation
…trackers during session token flow
…lementation of PaymentSessionIntent
…or-v2-sdk-session-flow
…or-v2-sdk-session-flow
impl TryFrom<Connector> for RoutableConnectors { | ||
type Error = &'static str; | ||
|
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 already have the ForeignFrom implementation in router crate , maybe we could replace that with this , in the next PR?
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.
sure. I've added that to this list.
#6763 (review)
#[cfg(feature = "v2")] | ||
fn compile_payment_method_enabled( | ||
builder: &mut cgraph::ConstraintGraphBuilder<dir::DirValue>, | ||
enabled: common_types::payment_methods::PaymentMethodsEnabled, |
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.
same for this , can we do a from conversion between the types and use it here , instead of de-duplicating the function. In another PR?
…acilitapay * 'main' of github.com:juspay/hyperswitch: chore(cypress): bump cypress to `v14.2.0` (#7640) feat(connector): [BRAINTREE] Pass connector request reference id (#7609) fix(connector): [GlobalPay] Address `5xx` when cancelling a paypal transaction (#7605) feat(dashboard_metadata): Add `ReconStatus` in `dashboard_metadata` (#7595) fix(connectors): [Adyen] remove redundant enums (#7601) feat: add routing support for v2 sdk session flow (#6763) chore(version): 2025.03.26.0 feat(connector): [Coingate] add wasm changes for coingate metadata (#7632) feat(connector): [TRUSTPAY] implement Banktransfer PaymentMethod (#7575) feat(connector): [BANKOFAMERICA] Implement Samsung Pay (#6888) fix(connector): add Nomupay in payout_connector_list for all environment (#7521) chore(version): 2025.03.25.0
…e-status-check * 'main' of github.com:juspay/hyperswitch: build(docker): specify user for runner stage (#7641) chore(version): 2025.03.27.0 fix(connector): [Nexixpay] update status mapping nexixpay (#7612) refactor(connector): [TrustPay] Fix status and wasm changes (#7649) fix(connector): [redsys] psync transaction type mapping (#7628) feat(themes): Add email configuration support for themes (#7580) feat(core): add profile level config for debit routing feature (#7470) fix(connector): [CYBERSOURCE] change ucaf_collection_indicator for mastercard payments via netcetera (#7623) fix(connector): fix required fields for mandates supported connectors (#6930) chore(cypress): bump cypress to `v14.2.0` (#7640) feat(connector): [BRAINTREE] Pass connector request reference id (#7609) fix(connector): [GlobalPay] Address `5xx` when cancelling a paypal transaction (#7605) feat(dashboard_metadata): Add `ReconStatus` in `dashboard_metadata` (#7595) fix(connectors): [Adyen] remove redundant enums (#7601) feat: add routing support for v2 sdk session flow (#6763)
Type of Change
Description
Added session routing support for session call in v2. And store the prerouting results in the payment_intent tabled prerouting_algorithm column.
Other changes:
MerchantConnectorAccounts
Wrapper instead ofVec<MerchantConnectorAccount>
across the codebase.Additional Changes
Motivation and Context
How did you test it?
follow the steps mentioned in this PR.
#6502
In addition to that check if
prerouting_algorithm
column inpayment_intent
is updated.use this query.
select prerouting_algorithm from payment_intent where id ='payment_id';
Checklist
cargo +nightly fmt --all
cargo clippy