juspay / hyperswitch

An open source payments switch written in Rust to make payments fast, reliable and affordable
https://hyperswitch.io/
Apache License 2.0
12.58k stars 1.35k forks source link

[FEATURE] replace manual implementation using `from_str` function of strum #1042

Closed Narayanbhat166 closed 1 year ago

Narayanbhat166 commented 1 year ago

Feature Description

In the convert_connector function the manual implementation of converting the connector from string can be replaced using the from_str function provided by strum

Possible Implementation

Use from_str function of strum

Have you spent some time to check if this feature request has been raised before?

Have you read the Contributing Guidelines?

Are you willing to submit a PR?

No, but I'm happy to collaborate on a PR with someone else

nachiketkanore commented 1 year ago

I would like to take this!