Skip to content

Payment form invoice number input#1385

Open
bobular wants to merge 5 commits into
mainfrom
payment-form-invoice-field
Open

Payment form invoice number input#1385
bobular wants to merge 5 commits into
mainfrom
payment-form-invoice-field

Conversation

@bobular
Copy link
Copy Markdown
Member

@bobular bobular commented May 1, 2025

Here's what it looks like

image

Notice there are now placeholders and the dollar amount is right-justified.

@bobular bobular requested a review from ryanrdoherty May 1, 2025 21:22
@bobular
Copy link
Copy Markdown
Member Author

bobular commented May 2, 2025

I've added invoice number validation on the front end too - was this a good idea? (There is now duplication of the back end regexp here in the front end.)

image

@ryanrdoherty
Copy link
Copy Markdown
Member

I don't have a problem with validation duplication. The mantra I've always heard is: back-end validation is necessary, front-end, sublime. Better to catch this right away with a nice message than show the spinner and then possibly not handle as well.

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