juspay/hyperswitch

refactor(connector) : Move connector specific functions in utils

Open

#7,926 opened on Apr 29, 2025

View on GitHub
 (4 comments) (0 reactions) (1 assignee)Rust (4,676 forks)batch import
A-connector-integrationC-refactorE-easygood first issue

Repository metrics

Stars
 (42,690 stars)
PR merge metrics
 (Avg merge 6d 22h) (213 merged PRs in 30d)

Description

There are connector specific function(s) in crates/hyperswitch_connectors/src/utils.rs , need to move it into specific connector code (or make it generic!)

🔨 eg. validate_currency which is not a common function and used only in crates/hyperswitch_connectors/src/connectors/braintree/transformers.rs .

Checkpoints :

  1. If the code seems it could be reused make it generic.

Contributor guide