Commit da91f76
Fix Stripe tax ID collection error on course checkout
The course.checkout route enables tax_id_collection on a Cashier checkout
for a user who already has a Stripe customer. Stripe requires
customer_update[address]=auto so it can write the collected billing
address back to the existing customer for tax ID validation. Cashier
only auto-fills customer_update[name], so Stripe rejected the request.
Add customer_update => [name, address] => auto, matching the cart,
license renewal, and mobile pricing checkout flows, and assert it in the
course checkout test.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 0c1081a commit da91f76
2 files changed
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
153 | 153 | | |
154 | 154 | | |
155 | 155 | | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
156 | 160 | | |
157 | 161 | | |
158 | 162 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
130 | 134 | | |
131 | 135 | | |
132 | 136 | | |
| |||
0 commit comments