Stripe checkout #104411
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user