security: validate billing address structure in Order model #24

Open
Charon wants to merge 1 commit from feat/validate-billing-address into dev

1 commit

Author SHA1 Message Date
Claude
aedc9ee378
security: validate billing address structure in Order model
Add billing address validation on Order creating/updating events.
Required fields (line1, city, postcode, country) are enforced when
commerce.checkout.require_billing_address is enabled (default).
Unrecognised keys are stripped to prevent data pollution.

Fixes #12

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-24 16:20:14 +00:00