feat(core): Added Refund flow support for Hyperswitch <> UCS Integration#9862
Merged
bernard-eugine merged 11 commits intomainfrom Oct 29, 2025
Merged
feat(core): Added Refund flow support for Hyperswitch <> UCS Integration#9862bernard-eugine merged 11 commits intomainfrom
bernard-eugine merged 11 commits intomainfrom
Conversation
Changed Files
|
99b9b51 to
dfc72b6
Compare
2 tasks
2fa684c to
8f101aa
Compare
dbceca9 to
4bddfa4
Compare
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #9862 +/- ##
=======================================
Coverage ? 3.92%
=======================================
Files ? 1223
Lines ? 300980
Branches ? 0
=======================================
Hits ? 11803
Misses ? 289177
Partials ? 0 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
4bddfa4 to
2490d15
Compare
jarnura
previously approved these changes
Oct 27, 2025
5915e01 to
1b85e4e
Compare
crates/router/src/core/unified_connector_service/transformers.rs
Outdated
Show resolved
Hide resolved
Aishwariyaa-Anand
previously approved these changes
Oct 28, 2025
chaitak-gorai
previously approved these changes
Oct 28, 2025
jarnura
previously approved these changes
Oct 29, 2025
6733986
chaitak-gorai
previously approved these changes
Oct 29, 2025
Aishwariyaa-Anand
previously approved these changes
Oct 29, 2025
jarnura
previously approved these changes
Oct 29, 2025
122d2e3
18cdc08 to
44005a7
Compare
44005a7 to
73e628e
Compare
chaitak-gorai
previously approved these changes
Oct 29, 2025
jarnura
previously approved these changes
Oct 29, 2025
jarnura
approved these changes
Oct 29, 2025
chaitak-gorai
approved these changes
Oct 29, 2025
aadityaguptaa
pushed a commit
that referenced
this pull request
Nov 10, 2025
…ion (#9862) Co-authored-by: Amitsingh Tanwar <amitsingh.tanwar@juspay.in> 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
This PR implements UCS(Unified Connector Service) Integration for Refund flow, along with shadow mode for diff checker.
Additional Changes
Motivation and Context
Currently refund flow only uses direct connector call.
Need a divergence to ucs call based on rollout config.
How did you test it?
Create Payment Stripe
Refund Stripe
{ "payment_id": "{{payment_id}}", "amount": 100, "reason": "OTHER", "refund_type": "instant", "metadata": { "udf1": "value1", "new_customer": "true", "login_date": "2019-09-10T10:11:12Z" } }Validation Service Router data comparison
Validation Service Refund Execute Connector Request data comparison
metadata is actually same in both request. its just validation service parsing issue.
For eg.,
ucs actual request to connector (mitm):
hyperswitch actual request to connector:
Stripe RSync Request
Validation Service Refund Sync Router data comparison
Validation Service Refund Sync Connector Request data comparison
Checklist
cargo +nightly fmt --allcargo clippy