'When purchase goes through, activate and update the course enrollment for the correct mode'

def purchased_callback(self):

    self.course_enrollment.change_mode(self.mode)
    self.course_enrollment.activate()
    self.course_enrollment.send_signal(EnrollStatusChange.upgrade_complete, cost=self.unit_cost, currency=self.currency)
