#_yelsew

1 messages · Page 1 of 1 (latest)

onyx atlasBOT
dull timber
#

Can you share how you pass your code on how you populate the contacts?

#

and what does the current UI look like?

haughty nest
#
      <AddressElement
        options={{
          mode: "billing",
          contacts: [
            {
              name: "test",
              address: {
                line1: "string",
                line2: "string",
                city: "Denver",
                state: "CO",
                postal_code: "string",
                country: "US",
              },
            },
          ],
        }}
        onChange={onAddressChange}
      />
#

I replaced the postal code with an actual stringified number and that rendered properly 👍

#

Is there a way to remove the "Change" button?

dull timber
#

The address in the contacts is not a valid address, so it will prompt to ask for the new address.

#

Contacts will only render if the address/postal code is valid

#

I'm afraid it's not possible to remove "Change" button

haughty nest
#

All good, thanks for your help