# collab: Add ability to add tax ID during Stripe Checkout \(\#34246\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/c09f484ec4e1c9b1548d810340e7cd05f78cca21)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: c09f484ec4e1c9b1548d810340e7cd05f78cca21

Requested commit: c09f484ec4e1c9b1548d810340e7cd05f78cca21

Commit: c09f484ec4e1c9b1548d810340e7cd05f78cca21

Tree: 8ab6a13b72398c33fc1d9ea032b426d35b0c5947

Author: morgankrey

Committer: GitHub

## Message

```
collab: Add ability to add tax ID during Stripe Checkout (#34246)

### 1. **Added Tax ID Collection Types**
- Created a new `StripeTaxIdCollection` struct with an `enabled` field
- Added `tax_id_collection` field to `StripeCreateCheckoutSessionParams`

### 2. **Updated the Stripe Client Interface**
- Modified the real Stripe client to handle tax ID collection conversion
- Updated the fake Stripe client for testing purposes
- Added proper imports across all affected files

### 3. **Enabled Tax ID Collection in Checkout Sessions**
- Both `checkout_with_zed_pro` and `checkout_with_zed_pro_trial` methods
now enable tax ID collection
- The implementation correctly sets `tax_id_collection.enabled = true`
for all checkout sessions

### 4. **Key Implementation Details**
- Tax ID collection will be shown to new customers and existing
customers without tax IDs
- Collected tax IDs will be automatically saved to the customer's
`tax_ids` array in Stripe
- Business names will be saved to the customer's `name` property
- The existing `customer_update.name = auto` setting ensures
compatibility with tax ID collection

Release Notes:

- N/A
```

## Parents

- [a58a75c0f6dcfeeb1578e9a763bb02eb72d35763](https://git.cafe/gitcafe/zed/commit/a58a75c0f6dcfeeb1578e9a763bb02eb72d35763?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/c09f484ec4e1c9b1548d810340e7cd05f78cca21?format=markdown)
