Skip to content

PhoenixKit 2.20.0: Several bank accounts and country-aware company fields

PhoenixKit 2.20.0 lets a site’s organization keep more than one bank account, fits the company address and tax fields to the chosen country, and puts five more settings pages behind tabs.

Several bank accounts

The Bank Accounts tab of the Organization settings had room for exactly one account. It now holds a list, managed with Add Bank Account, edit and delete. Each account has a label, a bank name, an IBAN, a SWIFT/BIC and a Primary account switch, so a company can keep, say, a euro operating account and a dollar reserve. Marking one account as primary unmarks the others. Billing keeps working as before and now reads the primary account; when none is marked, it takes the first.

This release also fixes saving: the bank accounts list looked saved, the message appeared, but only a single old account came back after a reload. The list is now stored properly.

Company fields that follow the country

Under Company Information, the state or province field is now a dropdown for the 224 countries with subdivision data, such as the 50 US states with DC and the territories, or Canada’s provinces and territories. Only countries without that data keep a free text field.

The tax number field is named and checked for the country: EIN for the United States, Business Number (BN) for Canada, VAT Number in EU member states and Tax ID elsewhere, where it used to say VAT Number everywhere. The postal code field says ZIP Code for the United States and Postal Code for other countries, and both check the format.

More settings pages with tabs

As General settings did in the previous release, these pages now show their sections behind a row of tabs instead of one long scroll:

  • Authorization: Login Page Branding, Authentication Methods, Sessions.
  • Users: Registration, Sessions, New User Defaults, Custom User Fields and others.
  • Crawlers: Robots Directive, Bot Access, robots.txt, llms.txt, Verification, Enforcement.
  • Website access: one tab per feature.
  • Organization: Company Information, Main countries, Bank Accounts, Tax Settings, Site URL.

Upgrading

No migration and no configuration. Update the dependency. An existing single bank account is read as the primary account of the new list. Check the tax number and postal code of your organization, since they are now validated for the selected country.

Full release notes: PhoenixKit 2.20.0

2.20.0 · 7 September 2026

Added

  • Multiple bank accounts — the Organization settings page’s Bank Accounts card now supports more than one account (a EUR operating account and a USD reserve account, say), each with a label, bank name, IBAN, SWIFT/BIC, and a “primary” flag, via a proper add/edit/delete UI. Previously there was room for exactly one. phoenix_kit_billing’s integration point is unaffected — it now reads the primary account.
  • Country-aware Company Information fields — the State/Province field is a real dropdown for the 224 countries with subdivision data (US: 50 states + DC + territories; Canada: 13 provinces/territories; and 222 others), falling back to free text only for the 26 without. The tax-ID field is labeled and validated correctly per country instead of always saying “VAT Number”: EIN for the US, Business Number (BN) for Canada, VAT Number for EU members, generic Tax ID elsewhere. The postal-code field says ZIP Code for the US and Postal Code everywhere else, both with real format validation.
  • Tabs on the Authorization, Users, Crawlers, Website Access, and Organization settings pages — same treatment as General settings’ tabs in 2.19.0, each page’s sections behind a strip instead of one long scroll.

Fixed

  • The bank accounts list could not actually be saved: value_json is an Ecto :map column that silently rejects a bare JSON array, so every save looked successful (the flash fired) while quietly never persisting past a single legacy account on reload. Fixed by wrapping the list the same way Custom User Fields already does (%{"accounts" => [...]}).
  • CountryData.get_subdivision_label("CA") had a stale doctest claiming “Province”; the real value from beamlab_countries is “Provinces and territories”.

||||||| parent of 8fbfa12992 (Make the public-page Edit link a documented API with a component and a permission gate)


PhoenixKit 2.20.0. Install or update: {:phoenix_kit, "~> 2.20"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.