Subscriptions: update Stripe customer email on update email action

User can update email address in Discourse. When this occurs their Stripe customer record email address should also be updated to correspond with Discourse.

Presently, after changing email addresses the user will lose their subscription and billing info in Discourse; the subscriptions controller uses the new email address to search Stripe and so nothing is found. Even if this were changed to use the Stripe customer id, it would still make sense to have the two email addresses (in Discourse and Stripe) match so that invoices from Stripe went to the same email address as that of the Discourse account.

2 Likes