feat: Added HS<>UCS create_connector_customer flow support and populated router_data fields received from UCS#9984
Merged
bernard-eugine merged 27 commits intomainfrom Oct 29, 2025
Merged
Conversation
…ed routerdata parity
…-authorizedotnet-fix
Changed Files
|
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #9984 +/- ##
=======================================
Coverage ? 3.92%
=======================================
Files ? 1223
Lines ? 300443
Branches ? 0
=======================================
Hits ? 11798
Misses ? 288645
Partials ? 0 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
…-authorizedotnet-fix
…yperswitch into ucs-authorizedotnet-fix
2 tasks
…yperswitch into ucs-authorizedotnet-fix
…-authorizedotnet-fix
crates/router/src/core/payments/flows/complete_authorize_flow.rs
Outdated
Show resolved
Hide resolved
…-authorizedotnet-fix
553f92d to
97cd995
Compare
| .clone(); | ||
|
|
||
| // Calculate connector_label before cloning data for shadow UCS | ||
| let unified_connector_service_connector_label = |
Contributor
There was a problem hiding this comment.
I think we should call fn process_through_ucs instead of execute_shadow_unified_connector_service_call. So that any changes done in ucs flow will be reflected in shadow more as well.
jarnura
requested changes
Oct 28, 2025
hrithikesh026
previously approved these changes
Oct 29, 2025
…-authorizedotnet-fix
jarnura
approved these changes
Oct 29, 2025
hrithikesh026
approved these changes
Oct 29, 2025
aadityaguptaa
pushed a commit
that referenced
this pull request
Nov 10, 2025
…ted router_data fields received from UCS (#9984) Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
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
Added support for the create_connector_customer flow for UCS in v1, and populated additional fields such as connector_response and connector_metadata in router_data for improved data consistency.
Additional Changes
Motivation and Context
How did you test it?
tested it using diff checker
Authorize Flow
Authorize Request
Authorize Response
{ "payment_id": "pay_nGxyofcByR45vSXqtxcw", "merchant_id": "merchant_1761124451", "status": "succeeded", "amount": 6540, "net_amount": 6540, "connector": "authorizedotnet", "client_secret": "pay_nGxyofcByR45vSXqtxcw_secret_uDqnVxhyI4Mvubh6tkak", "currency": "USD", "customer_id": "customer123w9ryuwuryweiuyrewiuhi", "description": "Its my first payment request", "capture_method": "automatic", "payment_method": "card", "connector_transaction_id": "120073086322", "network_transaction_id": "WC001WNXVWT1BHW7ICMFA44", "merchant_order_reference_id": "testing_the_integ03454", "connector_mandate_id": "933135702-932436342", "feature_metadata": { "gateway_system": "direct" }, "connector_metadata": { "noon": { "order_category": "pay" } }, "order_details": [ { "product_name": "Apple iphone 15", "quantity": 1, "amount": 6540 } ], "ephemeral_key": { "customer_id": "customer123w9ryuwuryweiuyrewiuhi", "created_at": 1761306340, "expires": 1761309940, "secret": "epk_5329d1ef7bfc4c21a17d689167caa98a" }, "whole_connector_response": "{\"transactionResponse\":{\"responseCode\":\"1\",\"authCode\":\"19RFGL\",\"avsResultCode\":\"Y\",\"cvvResultCode\":\"P\",\"transId\":\"120073086322\",\"messages\":[{\"code\":\"1\",\"description\":\"This transaction has been approved.\"}]}}" }To make a call for create_connector_customer you have to update the customer id and email
Checklist
cargo +nightly fmt --allcargo clippy