feat(core): Added mandate_id flow support in HS<>UCS#10399
Merged
likhinbopanna merged 5 commits intomainfrom Nov 27, 2025
Merged
feat(core): Added mandate_id flow support in HS<>UCS#10399likhinbopanna merged 5 commits intomainfrom
likhinbopanna merged 5 commits intomainfrom
Conversation
Changed Files
|
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #10399 +/- ##
=======================================
Coverage ? 6.47%
=======================================
Files ? 1249
Lines ? 310672
Branches ? 0
=======================================
Hits ? 20106
Misses ? 290566
Partials ? 0 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
AmitsinghTanwar007
previously approved these changes
Nov 21, 2025
Contributor
|
LGTM |
jarnura
previously approved these changes
Nov 24, 2025
eec0cce
AmitsinghTanwar007
approved these changes
Nov 24, 2025
jarnura
approved these changes
Nov 26, 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
This PR introduces enhancements to the HS<>UCS setup_mandate flow, along with a new Cypress test for ZeroAuthMandate.
Changes Included:
In
crates/hyperswitch_domain_models/src/router_request_types.rs, the customer's name is now passed to theConnectorCustomerDataduring the setup mandate flow matching the Authorize flow.In
setup_mandate_flowthe fieldconnector_responsefrom unified connector service is added to router_data.The
UcsSetupMandateResponseDatastruct incrates/router/src/types.rshas been updated to include theconnector_response.The
handle_unified_connector_service_response_for_payment_registerfunction incrates/router/src/core/unified_connector_service.rsnow extracts and returns theconnector_response.In
crates/router/src/core/unified_connector_service/transformers.rs, the logic for determiningcustomer_acceptancehas been modified to handle both legacy mandate_id and current pm_id flows.Minor variable renaming in
crates/router/src/core/payments/flows/authorize_flow.rsfor better clarity.Additional Changes
Motivation and Context
How did you test it?
Tested via HS<>UCS with diff checker

cypress
00015-ZeroAuthMandate.cy.jsChecklist
cargo +nightly fmt --allcargo clippy