juspay/hyperswitch
View on GitHubrefactor(connector) : Move connector specific functions in utils
Open
#7,926 opened on Apr 29, 2025
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 :
- If the code seems it could be reused make it generic.