juspay/hyperswitch
[FEATURE] Standardize `state` field in billing and shipping address
开放
#2,939 创建于 2023年11月21日
C-featuregood first issuehelp wanted
仓库指标
- 星标
- (42,690 个星标)
- PR 合并指标
- (平均合并 6天 22小时) (30 天内合并 213 个 PR)
描述
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