> ## Documentation Index
> Fetch the complete documentation index at: https://docs.overflow.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Billing address section

> Configure the billing address section inside Checkout.

Enable the billing address section by passing `billingAddress`. The section accepts every option the standalone [Billing address element](/payment-elements/elements/address/billing-address) accepts.

## Enable the section

```javascript theme={null}
overflow.checkout({
  paymentMethods: ['card'],
  billingAddress: {},
});
```

An empty object renders the default field set: line1, line2, city, state, postal code, country. Country defaults to the shopper's inferred locale.

## Same-as-shipping

When both `shippingAddress` and `billingAddress` are configured, Checkout renders a "Same as shipping" toggle on the billing section. The toggle is on by default; the shopper unchecks it to enter a different billing address.

```javascript theme={null}
overflow.checkout({
  paymentMethods: ['card'],
  shippingAddress: {},
  billingAddress: {
    sameAsShipping: { defaultChecked: true },
  },
});
```

## Configure fields

```javascript theme={null}
overflow.checkout({
  paymentMethods: ['card'],
  billingAddress: {
    fields: {
      country: { supportedCountries: ['US', 'CA'] },
      line2: { hidden: true },
    },
  },
});
```

## Autocomplete

```javascript theme={null}
overflow.checkout({
  paymentMethods: ['card'],
  billingAddress: {
    autocomplete: { enabled: true },
  },
});
```

See [Address autocomplete](/payment-elements/elements/address/autocomplete).

## Submitted value

```javascript theme={null}
checkout.on('onSubmit', ({ value }) => {
  // value.billingAddress: { line1, line2?, city, state, postalCode, country, ... }
});
```

If the shopper leaves "Same as shipping" checked, `value.billingAddress` equals `value.shippingAddress`.

## See also

* [Billing address element](/payment-elements/elements/address/billing-address)
* [Shipping address section](/payment-elements/elements/checkout/sections/shipping-address)
