def send_refund_notification(course_enrollment, refund_ids):
 tags = [u'auto_refund']
 if theming_helpers.is_request_in_themed_site():
  raise NotImplementedError(u'Unable to send refund processing emails to support teams.')
 student = course_enrollment.user
 subject = _(u'[Refund] User-Requested Refund')
 body = generate_refund_notification_body(student, refund_ids)
 requester_name = (student.profile.name or student.username)
 create_zendesk_ticket(requester_name, student.email, subject, body, tags)

def send_refund_notification ( course_enrollment , refund_ids ) : tags = [ u'auto_refund' ] if theming_helpers . is_request_in_themed_site ( ) : raise NotImplementedError ( u'Unable to send refund processing emails to support teams.' ) student = course_enrollment . user subject = _ ( u'[Refund] User-Requested Refund' ) body = generate_refund_notification_body ( student , refund_ids ) requester_name = ( student . profile . name or student . username ) create_zendesk_ticket ( requester_name , student . email , subject , body , tags )
notify the support team of the refund request .