Cancelling and getting credits back are two different things.
Say your credit-return window is 60 minutes and class starts at 6:00 PM. Cancel before 5:00 PM and eligible credits go back automatically. Cancel at 5:00 PM or later and the cancellation still goes through, but the credit doesn't come back on its own. Card and cash refunds are handled separately.
Booking and cancellation rules