juspay/hyperswitch

[FEATURE] Standardize `state` field in billing and shipping address

オープン

#2,939 opened on 2023/11/21

 (6 件のコメント) (0 件のリアクション) (1 人の担当者)Rust (4,676 件のフォーク)batch import
C-featuregood first issuehelp wanted

Repository metrics

Stars
 (42,690 個のスター)
PR merge metrics
 (平均マージ 6d 22h) (30d で 213 merged PRs)

説明

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

コントリビューターガイド