Apologise and confirm
Say the class is cancelled and why, briefly.
Restore the credit
Confirm their credit or payment is returned.
Offer alternatives
List the nearest classes with space.
Offer to rebook
Offer to book them in right away.
Thank them
Appreciate their patience.