Stripe checkout #104411

Merged
Anna Sirota merged 61 commits from stripe into main 2024-06-17 18:08:41 +02:00
Showing only changes of commit cf912f4cd9 - Show all commits

View File

@ -92,7 +92,7 @@ def send_mail_subscription_status_changed(subscription_id: int):
subscription = looper.models.Subscription.objects.get(pk=subscription_id) subscription = looper.models.Subscription.objects.get(pk=subscription_id)
customer = subscription.customer customer = subscription.customer
user = customer.user user = customer.user
email = user.customer.billing_address.email or user.email email = customer.billing_address.email or user.email
assert email, f'Cannot send notification about subscription {subscription.pk} status: no email' assert email, f'Cannot send notification about subscription {subscription.pk} status: no email'
if is_noreply(email): if is_noreply(email):
raise raise