zulip/corporate/views
Eeshan Garg 88fd399bec billing: Use UserProfile.id to ascertain customer's email.
Previously, our Stripe webhook event handler code retrieved the
user's email from Stripe using the stripe.Customer.email attribute.
This led to situations such that whenever the email that Stripe had
did not correspond to a UserProfile in Zulip, the payment flow
failed since we couldn't find a UserProfile associated with the
given email.

Now, we pass in the UserProfile.id in the metadata to Stripe's
checkout Session object, so that we can fetch the correct email
in future Stripe requests.
2021-12-03 14:57:30 -08:00
..
__init__.py billing: Split views into upgrade and billing page views. 2021-07-20 14:43:39 -07:00
billing_page.py billing: Migrate to Stripe hosted checkout page. 2021-11-05 17:23:10 -07:00
event_status.py billing: Migrate to Stripe hosted checkout page. 2021-11-05 17:23:10 -07:00
session.py billing: Use UserProfile.id to ascertain customer's email. 2021-12-03 14:57:30 -08:00
support.py corporate: Add contact support page. 2021-10-01 17:30:01 -07:00
upgrade.py billing: Use UserProfile.id to ascertain customer's email. 2021-12-03 14:57:30 -08:00
webhook.py billing: Enforce the Stripe API version is in sync with billing system. 2021-11-05 17:23:10 -07:00