Skip to content

Add form validation for payment methods and required fields#26

Open
fifle wants to merge 20 commits intomasterfrom
feature/form-validation
Open

Add form validation for payment methods and required fields#26
fifle wants to merge 20 commits intomasterfrom
feature/form-validation

Conversation

@fifle
Copy link
Owner

@fifle fifle commented Apr 17, 2025

This PR implements form validation for payment methods and required fields:

  • Validates IBAN field when internet-bank methods (Swedbank, SEB, LHV, Coop) are enabled
  • Validates required fields (campaign details, bank details name, payee's name)
  • Validates SEB UID tokens when SEB method is enabled (requires at least one UID token)
  • Validates credit card methods when enabled (requires corresponding field values)
  • Displays inline error messages with proper styling
  • Shows which step needs to be configured when validation fails
  • Prevents form submission when validation fails
  • Navigates to the step with errors when validation fails

This addresses the issue where required fields validation for internet-banks and credit cards was not working properly.

@fifle fifle force-pushed the feature/form-validation branch from d520719 to 4c65106 Compare April 17, 2025 13:22
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