Commit 69e8dae
committed
fix(emails): Subscription invoice emails have outdate email addresses
Because:
* When a customer changes their FxA account email, this change is not propagated through to Stripe
* Emails relating to Stripe's invoices pull the customer's email field from their invoice
* This causes these emails to contain outdated email addresses
This commit:
* Because the text of the invoice references the customer receiving the email because there is a Mozilla account with the listed email address, this commit updates the emails to use the account's primary email for these fields.
Closes #PAY-32151 parent 1a59f7b commit 69e8dae
2 files changed
Lines changed: 9 additions & 0 deletions
File tree
- packages/fxa-auth-server
- lib/routes/subscriptions
- test/local/routes/subscriptions
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
949 | 949 | | |
950 | 950 | | |
951 | 951 | | |
| 952 | + | |
952 | 953 | | |
953 | 954 | | |
954 | 955 | | |
| |||
970 | 971 | | |
971 | 972 | | |
972 | 973 | | |
| 974 | + | |
973 | 975 | | |
974 | 976 | | |
975 | 977 | | |
| |||
1083 | 1085 | | |
1084 | 1086 | | |
1085 | 1087 | | |
| 1088 | + | |
1086 | 1089 | | |
1087 | 1090 | | |
1088 | 1091 | | |
| |||
1097 | 1100 | | |
1098 | 1101 | | |
1099 | 1102 | | |
| 1103 | + | |
1100 | 1104 | | |
1101 | 1105 | | |
1102 | 1106 | | |
| |||
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2175 | 2175 | | |
2176 | 2176 | | |
2177 | 2177 | | |
| 2178 | + | |
2178 | 2179 | | |
2179 | 2180 | | |
2180 | 2181 | | |
| |||
2212 | 2213 | | |
2213 | 2214 | | |
2214 | 2215 | | |
| 2216 | + | |
2215 | 2217 | | |
2216 | 2218 | | |
2217 | 2219 | | |
| |||
2223 | 2225 | | |
2224 | 2226 | | |
2225 | 2227 | | |
| 2228 | + | |
2226 | 2229 | | |
2227 | 2230 | | |
2228 | 2231 | | |
| |||
2411 | 2414 | | |
2412 | 2415 | | |
2413 | 2416 | | |
| 2417 | + | |
2414 | 2418 | | |
2415 | 2419 | | |
2416 | 2420 | | |
| |||
2451 | 2455 | | |
2452 | 2456 | | |
2453 | 2457 | | |
| 2458 | + | |
2454 | 2459 | | |
2455 | 2460 | | |
2456 | 2461 | | |
| |||
0 commit comments