fulldecent / moodle-enrol_course_tokens

Create single-use tokens. Then new students can create an account and enroll with these tokens.
2 stars 1 forks source link

[DISCUSS] Allow to unenroll #26

Open fulldecent opened 1 month ago

fulldecent commented 1 month ago

We must be able unenroll students. Scenarios include:

  1. Student asks for a refund or charges back credit card
  2. Student completes course and then wants to do course again two years later as a new enrollment

In both cases, we need to keep the old course token in the database as it is evidence of fulfillment of that payment they made.

So we will need to have a fulfilled field which default to FALSE but then sets to true when an enrollment is associated with the token.

Later the token may be unassociated.