juspay/hyperswitch
[FEATURE] Standardize `state` field in billing and shipping address
Aperta
#2939 aperta il 21 nov 2023
C-featuregood first issuehelp wanted
Metriche repository
- Star
- (42.690 stelle)
- Metriche merge PR
- (Merge medio 6g 22h) (213 PR mergiate in 30 g)
Descrizione
Feature Description
Currently, we accept the state field in both shipping and billing addresses as a string. However, in a few connectors like Cybersource, we have a mapping from state names to state codes. We propose standardizing the state field to accept only ISO 3166-2 codes (https://en.wikipedia.org/wiki/ISO_3166-2)
Possible Implementation
We can use some crate that helps in validating ISO 3166-2 codes and accept these codes in payment request