# <BillingDetails />

A component for updating account details, billing address and payment methods for an account.

 [image: BillingDetails component with a billing address, primary and secondary billing contacts and tax ID form on the left and a saved card beside a New card tile on the right]

The billing details component

```tsx
<BillingDetails
  onSavePaymentMethod={(paymentMethodId) => console.log(paymentMethodId)}
  onPaymentMethodRemoved={(paymentMethodId) => console.log(paymentMethodId)}
/>
```

It needs a [portal session token](https://docs.bunny.com/developer/bunny-components/installation#tokens). Like every component, it also accepts `appearance` ([Styling](https://docs.bunny.com/developer/bunny-components/styling)) and `style` and `className` for positioning.

### hidePaymentMethodForm and hideBillingDetailsForm

Hide the payment methods (right side) or the account and address form (left side).

### countryListFilter

Return `false` to hide a country, identified by its two-letter code. This hides the United States and Canada:

```tsx
const removedCountries = ["US", "CA"];

return (
  <BillingDetails
    countryListFilter={(country) =>
      !removedCountries.includes(country.value)
    }
  />
)
```

### onSavePaymentMethod and onPaymentMethodRemoved

Called with the payment method’s ID when the customer saves or removes a payment method.

---

Source: https://docs.bunny.com/developer/bunny-components/billing-details. Index of every page: https://docs.bunny.com/llms.txt
