code: def check_subscription(self, request):
  		
  		subscriber = subscriber_request_callback(request)
  
  		if not subscriber_has_active_subscription(subscriber):
  			if not SUBSCRIPTION_REDIRECT:
  				raise ImproperlyConfigured("DJSTRIPE_SUBSCRIPTION_REDIRECT is not set.")
  			return redirect(SUBSCRIPTION_REDIRECT)
docs: Redirect to the subscribe page if the user lacks an active subscription.