code: def subscription_payment_required(
  	function=None, plan=None, pay_page=SUBSCRIPTION_REDIRECT
  ):
  	
  	actual_decorator = subscriber_passes_pay_test(
  		subscriber_has_active_subscription, plan=plan, pay_page=pay_page
  	)
  	if function:
  		return actual_decorator(function)
  	return actual_decorator
docs: Decorator for views that require subscription payment.
  
  	Redirects to `pay_page` if necessary.