-
Notifications
You must be signed in to change notification settings - Fork 12
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
PP-11605 Update billing address section #3775
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,7 +23,8 @@ | |
"cardholderName": "Name on card", | ||
"billingAddress": "Billing address", | ||
"billingAddressHint": "This is the address associated with the card", | ||
"building": "Building number or name and street", | ||
"addressLine1": "Address line 1", | ||
"addressLine2": "Address line 2 (optional)", | ||
"city": "Town or city", | ||
"postcode": "Postcode", | ||
"country": "Country or territory", | ||
|
@@ -140,14 +141,14 @@ | |
"invalidYear": "This expiry year is not a valid" | ||
}, | ||
"addressLine1": { | ||
"name": "building name/number and street", | ||
"message": "Enter a valid billing address", | ||
"containsTooManyDigits": "Enter a valid billing address" | ||
"name": "address line 1", | ||
"message": "Enter address line 1, typically the building and street", | ||
"containsTooManyDigits": "Enter address line 1, typically the building and street" | ||
}, | ||
"addressLine2": { | ||
"name": "additional address line", | ||
"message": "Enter valid address information", | ||
"containsTooManyDigits": "Enter valid address information" | ||
"name": "address line 2", | ||
"message": "Enter address line 2", | ||
"containsTooManyDigits": "Enter address line 2" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I’m a bit concerned that this does not really tell people what the problem is (too many digits). It might trip people up entering foreign addresses. For example, in Germany, the postcode is written immediately before the city so it’s conceivable that someone could put it in the address line 2 input because that’s the one before the city… and German postcodes are all digits (but only five digits, so not enough to trigger our card number check). But since this is an existing issue I’m not going to hold up the review on this. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good point. I didn't realise German postcodes work like that. |
||
}, | ||
"addressCity": { | ||
"name": "town/city", | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I assume this is:
However, it looks like that’s not quite what it was doing. What would happen was if there was no text for address line 1 but there was for address line 2, it would shift the address line 2 text up to address line 1. We’re losing that behaviour now. That might be fine but I want to check we understand what we’re doing and why.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point - we removed this code as I didn't want
address line 2
shifting toaddress line 1
anymore.As we now have validation for
address line 1
andaddress line 2
individually.