Improved address handling and validation in checkout
The checkout flow now automatically clears masked address fields containing bullets when prefilling unverified addresses in the fulfillment step, preventing masked text from being saved back to the order. Addresses containing masked characters like bullet points are now explicitly rejected on street, street_2, and postal code fields to prevent corrupted data from being saved. Existing saved addresses with masked characters remain valid as long as those specific fields are not modified. Addresses typed directly into the checkout are no longer masked for unverified buyers, preventing forms from pre-filling with invalid data. Additionally, setting a contact now automatically links any previously entered address to a matching saved address in the customer’s address book. The fulfillment options now expose address_in_book, allowing storefronts to skip redundant address confirmations when an address already exists in the customer’s book. When a matching saved address is found alongside other alternatives, buyers will see their address book list with the address pre-selected. Finally, apartment and unit numbers entered in the secondary street field (street_2) are now correctly captured and saved from the address form.