Skip to content

feat(dynamic_routing): add open router integration for elimination routing #7896

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
merged 4 commits into from
Apr 29, 2025

Conversation

Chethan-rao
Copy link
Contributor

@Chethan-rao Chethan-rao commented Apr 24, 2025

Type of Change

  • Bugfix
  • New feature
  • Enhancement
  • Refactoring
  • Dependency updates
  • Documentation
  • CI/CD

Description

This PR adds the elimination routing integration support with open router.

Additional Changes

  • This PR modifies the API contract
  • This PR modifies the database schema
  • This PR modifies application configuration/environment variables

Motivation and Context

How did you test it?

Create merchant_account, api_key, mca

  1. Enable elimination routing for merchant
curl --location --request POST 'http://localhost:8080/account/merchant_1744368166/business_profile/pro_GrzjTHd5Pn5hAhwTZPRn/dynamic_routing/elimination/toggle?enable=dynamic_connector_selection' \
--header 'api-key: xyz'
  1. Enable Volume split
curl --location --request POST 'http://localhost:8080/account/merchant_1744368166/business_profile/pro_GrzjTHd5Pn5hAhwTZPRn/dynamic_routing/set_volume_split?split=100' \
--header 'api-key: xyz'
  1. Create a Payment
    Search for the log " penalizing the elimination score of the gateway with id"
    image

Checklist

  • I formatted the code cargo +nightly fmt --all
  • I addressed lints thrown by cargo clippy
  • I reviewed the submitted code
  • I added unit tests for my changes where possible

Sorry, something went wrong.

@Chethan-rao Chethan-rao added S-waiting-on-review Status: This PR has been implemented and needs to be reviewed A-routing Area: Routing labels Apr 24, 2025
@Chethan-rao Chethan-rao self-assigned this Apr 24, 2025
@Chethan-rao Chethan-rao requested review from a team as code owners April 24, 2025 13:32
Copy link

semanticdiff-com bot commented Apr 24, 2025

Review changes with  SemanticDiff

Changed Files
File Status
  crates/router/src/core/routing/transformers.rs  31% smaller
  crates/router/src/core/payments/routing.rs  26% smaller
  crates/router/src/core/routing/helpers.rs  7% smaller
  crates/api_models/src/open_router.rs  0% smaller
  crates/api_models/src/routing.rs  0% smaller

@Chethan-rao Chethan-rao linked an issue Apr 24, 2025 that may be closed by this pull request
@Chethan-rao Chethan-rao force-pushed the er_integration_decion_engine branch 4 times, most recently from 87a15cb to 54e92e2 Compare April 24, 2025 13:52

Verified

This commit was signed with the committer’s verified signature.
Chethan-rao Chethan Rao
…uting

Verified

This commit was signed with the committer’s verified signature.
Chethan-rao Chethan Rao
ShankarSinghC
ShankarSinghC previously approved these changes Apr 25, 2025

Verified

This commit was signed with the committer’s verified signature.
Chethan-rao Chethan Rao
@Chethan-rao Chethan-rao requested a review from Sarthak1799 April 25, 2025 09:33

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
@likhinbopanna likhinbopanna added this pull request to the merge queue Apr 29, 2025
Merged via the queue into main with commit 4745ce9 Apr 29, 2025
16 of 20 checks passed
@likhinbopanna likhinbopanna deleted the er_integration_decion_engine branch April 29, 2025 09:51
@hyperswitch-bot hyperswitch-bot bot removed the S-waiting-on-review Status: This PR has been implemented and needs to be reviewed label May 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-routing Area: Routing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

open router integration of elimination routing
6 participants