-
Notifications
You must be signed in to change notification settings - Fork 4.6k
feat: add support to call ucs authorize function during complete authorize #10091
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
Merged
bernard-eugine
merged 18 commits into
main
from
call-ucs-for-authorize-in-complete-authorize
Nov 5, 2025
Merged
feat: add support to call ucs authorize function during complete authorize #10091
bernard-eugine
merged 18 commits into
main
from
call-ucs-for-authorize-in-complete-authorize
Nov 5, 2025
Conversation
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
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #10091 +/- ##
=======================================
Coverage ? 3.90%
=======================================
Files ? 1224
Lines ? 302667
Branches ? 0
=======================================
Hits ? 11804
Misses ? 290863
Partials ? 0 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
crates/router/src/core/unified_connector_service/transformers.rs
Outdated
Show resolved
Hide resolved
…e-in-complete-authorize
…e-in-complete-authorize
…e-in-complete-authorize
jarnura
previously approved these changes
Nov 4, 2025
…//github.com/juspay/hyperswitch into call-ucs-for-authorize-in-complete-authorize
sai-harsha-vardhan
approved these changes
Nov 5, 2025
jarnura
approved these changes
Nov 5, 2025
aadityaguptaa
pushed a commit
that referenced
this pull request
Nov 10, 2025
…orize (#10091) Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
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.
feat: Enhance UCS integration with improved authentication flow and proxy selection logic
Type of Change
Description
This PR introduces significant enhancements to the Unified Connector Service (UCS) integration, focusing on authentication flow improvements and comprehensive data handling updates.
Key Changes:
Enhanced Authentication Flow:
payment_method_typeinPaymentsAuthenticateDataandPaymentsPostAuthenticateDataAuthenticationDataincludingtrans_statusandtransaction_idUCS Integration Improvements:
13c6e387c81c4573d382677d19ad91e3605ba9afData Model Enhancements:
authentication_dataandpayment_method_typetoCompleteAuthorizeDataCompleteAuthorizeRedirectResponsestructLogging and Monitoring:
ucs_logging_wrapperto support flow output dataAdditional Changes
Motivation and Context
This change addresses several critical improvements in the UCS integration:
Authentication Flow Enhancement: The previous implementation lacked proper authentication data propagation in complete authorize flows, leading to incomplete payment processing for 3DS transactions.
Performance Optimization: The proxy selection logic was making redundant database calls and had complex decision-making logic that could be simplified for better maintainability and performance.
Data Consistency: Missing fields in authentication data structures were causing issues with proper 3DS flow handling and response processing.
Dependency Updates: Updated to the latest connector-service revision to leverage new features and bug fixes.
How did you test it?
Response:
next_action.redirect_to_urlon a browser and complete redirection step.Payment gateway decision: gateway=UnifiedConnectorServiceChecklist
cargo +nightly fmt --allcargo clippy