In this challenge, you are tasked with developing a responsive interface that enables users to update their payment method, email, and address details.
The table below describes the fields required in the billing form, as well as their validation. Here is what some of the columns mean:
Field label | Placeholder | Allowed values | Validation | Validation message |
All fields | - | - | Required, except "Apartment, suite, etc." | "[Field name] is required" |
Card number | "1234 1234 1234 1234" | Digits, up to 16 digits | - | - |
Cardholder name | "Full name on card" | Alphanumeric | - | - |
Expiry | "MM / YY" | Digits, up to 4 to fill up 'MM / YYYY' | Cannot be before current date | "Enter a valid expiration date" |
CVV | "CVV" | Digits, up to 3 | - | - |
"user@example.com" | - | Email format matches the standard email format (e.g., user@example.com) | "Please enter a valid email address." | |
Country / Region | "United States" is chosen by default and disabled. In general, shipping information fields change according to country-specific customs, but we will avoid that complication. | |||
Address | "Street address" | Unicode | - | - |
"Apartment, suite, etc. (optional)" | Unicode | - | - | |
City | "City" | Unicode | - | - |
State | "State" | List of values provided to you in the data | - | - |
Zip | "12345" | Digits, up to 5 |
Other field requirements
alt
tags for images.