commercelayer / mfe-checkout

Commerce Layer Hosted Checkout
https://commercelayer.io
MIT License
42 stars 47 forks source link

Toggle for activating business billing address #418

Closed riccardobattiato closed 5 months ago

riccardobattiato commented 9 months ago

What I did

I've added a toggle to enable the business flag in Address object, allowing customers to use a company name ("Ragione sociale") instead of first and last name; currently it's for billing only.

immagine

The modifications act on the already predisposed AddressesContainer and AddressInputGroup. Some ideas to improve the toggle:

How to test

  1. Activate the toggle
  2. Insert company name
  3. Submit the address

Checklist