juspay/hyperswitch

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

Open

#2,939 建立於 2023年11月21日

在 GitHub 查看
 (6 留言) (0 反應) (1 負責人)Rust (4,676 fork)batch import
C-featuregood first issuehelp wanted

倉庫指標

Star
 (42,690 star)
PR 合併指標
 (平均合併 8天 12小時) (30 天內合併 212 個 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

貢獻者指南