Gravity Forms SEPA Fields
Adds two dedicated **SEPA bank-data fields** to Gravity Forms with robust server-side validation: an
**IBAN** field (entered in 4-character blocks, validated with check digits via the bundled
`globalcitizen/php-iban` library) and a **BIC / SWIFT** field (length / structure / ISO-country check).
Both values are additionally offered as reusable **Gravity Forms Settings API field types**, so any
add-on can collect and store an IBAN or a BIC in its own plugin or feed settings.
Features
- **IBAN form field** — drag-and-drop field in the form editor (group *e-Invoicing Fields*); rendered
as several 4-character blocks with auto-advance, backspace-back and paste-spreading of a full IBAN. - **BIC / SWIFT form field** — single text input with length (8/11), structure and ISO-country check.
- **Local validation** — IBAN check digits + per-country format via `php-iban`; BIC structure plus a
valid ISO 3166-1 country code at positions 5-6. - **116 Countries** — are supported
- **Optional country restriction** — accept only IBANs / BICs of one configured country (per field).
- **Reusable Settings API fields** — `iban` and `bic` field types for the Gravity Forms Settings API
that any add-on can use in plugin / feed settings, with the same local format validation. - **Normalized storage** — IBAN and BIC are stored upper-case and stripped of whitespace; the IBAN is
shown grouped in blocks of four in the entry detail / exports. - **Internationalized** — English and German translations included.
- **Dependency-bundled** — the `php-iban` library ships under `vendor/`; no `composer install` needed.
Settings-Field Coding
$fields[] = array(
'name' => 'company_vat_id',
'type' => 'vat_id',
'label' => __( 'Company VAT ID', 'your-textdomain' ),
'class' => 'medium',
);