Stripe checkout #104411
@ -80,7 +80,7 @@ def _on_subscription_created_needs_payment(sender: looper.models.Subscription, *
|
||||
tasks.send_mail_bank_transfer_required(subscription_id=sender.pk)
|
||||
user = sender.customer.user
|
||||
if not user:
|
||||
logger.error('Cannot grand role to an account-less customer pk=%s', sender.customer_id)
|
||||
logger.error('Cannot grant role to an account-less customer pk=%s', sender.customer_id)
|
||||
return
|
||||
users.tasks.grant_blender_id_role(pk=user.pk, role='cloud_has_subscription')
|
||||
|
||||
@ -95,7 +95,7 @@ def _on_subscription_status_changed(sender: looper.models.Subscription, **kwargs
|
||||
def _on_subscription_status_activated(sender: looper.models.Subscription, **kwargs):
|
||||
user = sender.customer.user
|
||||
if not user:
|
||||
logger.error('Cannot grand role to an account-less customer pk=%s', sender.customer_id)
|
||||
logger.error('Cannot grant role to an account-less customer pk=%s', sender.customer_id)
|
||||
return
|
||||
users.tasks.grant_blender_id_role(pk=user.pk, role='cloud_has_subscription')
|
||||
users.tasks.grant_blender_id_role(pk=user.pk, role='cloud_subscriber')
|
||||
|
Loading…
Reference in New Issue
Block a user