Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

カードフォーム画面で利用可能ブランドによるカード番号バリデーションが実施されないのを修正 #93

Merged
merged 2 commits into from
Dec 18, 2024

Conversation

yatatsu
Copy link
Contributor

@yatatsu yatatsu commented Dec 16, 2024

#92 の対応

何が問題か

  • カード番号のバリデーションで利用可能なブランドかどうかのチェックはブランド未取得だとスキップする
  • CardFormViewは明示的に fetchBrands(tenantId:completion:) を呼ばないと利用可能なブランドを取得しない
  • CardFormViewController (カードフォーム画面のViewController)は利用可能ブランドの表示はするが、CardFormView の fetchBrands(tenantId:completion:) は呼び出してなかったので、バリデーションされない状態にあった

どうしたか

  • 基本的には利用可能ブランドの取得は CardFormViewController 側ですでに実施しているので
  • ブランド取得後に CardFormView にセットするように変更した

@yatatsu yatatsu changed the title Set cart brands to CardFormView カードフォーム画面で利用可能ブランドによるカード番号バリデーションを実施するように Dec 16, 2024
@yatatsu yatatsu changed the title カードフォーム画面で利用可能ブランドによるカード番号バリデーションを実施するように カードフォーム画面で利用可能ブランドによるカード番号バリデーションが実施されないのを修正 Dec 16, 2024
@yatatsu yatatsu self-assigned this Dec 16, 2024
@yatatsu yatatsu marked this pull request as ready for review December 16, 2024 15:34
Copy link
Contributor

@natsuki-yamanaka natsuki-yamanaka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

動作良さそうです

@yatatsu yatatsu merged commit 939b152 into master Dec 18, 2024
1 check passed
@yatatsu yatatsu deleted the kitagawa/fix-brand-validation branch December 18, 2024 03:48
@yatatsu yatatsu mentioned this pull request Dec 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants