diff --git a/bd_api/apps/payment/webhooks.py b/bd_api/apps/payment/webhooks.py index 0176a007..a3e838cd 100644 --- a/bd_api/apps/payment/webhooks.py +++ b/bd_api/apps/payment/webhooks.py @@ -106,7 +106,7 @@ def subscribe(event: Event, **kwargs): """Add customer to allowed google groups""" if event.data["object"]["status"] in ["trialing", "active"]: if subscription := get_subscription(event): - add_user(event.customer.customer) + add_user(event.customer.email) subscription.is_active = True subscription.save()