sagemathinc / cocalc

CoCalc: Collaborative Calculation in the Cloud
https://CoCalc.com
Other
1.17k stars 216 forks source link

changing account email in CoCalc does not update email address in Stripe #3453

Closed DrXyzzy closed 10 months ago

DrXyzzy commented 5 years ago

to replicate:

  1. create test account using email address
  2. sync with stripe using admin tab
  3. verify CoCalc account id's match in stripe and admin tab
  4. change account email address using Cocalc Account > Preferences
  5. sign out and back in with new email
  6. verify new email address matches CoCalc account id in admin tab
  7. sync with stripe again
  8. search by CoCalc account id in stripe
  9. observe that old address is still shown in stripe customer record under both "Account Information:Email" and "Billing Information:Send emails to"
williamstein commented 5 years ago

This doesn't surprise me, since we never implemented anything to do this. They unique identifier between stripe and cocalc is the customer id, which we also have in our database (and also the account_id metadata, but that's not used), not the email address. Many users don't even have email addresses (e.g., maybe they use single sign on and don't provide one), or they have multiple addresses (one for github, one in cocalc, etc.).

So to me this isn't a bug, but I can see how it could be confusing to you. We could have a feature to add a link to the stripe page for a user to the admin page in cocalc, since the stripe url is just https://dashboard.stripe.com/customers/customer_id.

DrXyzzy commented 5 years ago

Don't users get email notifications from Stripe? If so, these would continue to go to an old email address after customer enters a new address in CoCalc.

williamstein commented 10 months ago

Fixed, then made no longer relevant...