The quotation given sounds very much like an acceptance notification for enrolling in a class. The actual learning has yet to take place, so you are being congratulated " for " paying the money to take the course. If this were, instead, congratulations on completing the course successfully, then " on " would be preferred in my opinion.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.