When the attendee is checked in at the event. Registering does not earn credits.
You set an event's credits when you create or edit it, under Continuing education: Credits earned (halves are allowed) and a Category. Leave it blank for none.
At check-in, the event's credits are posted to that person, with the category and the date. If you check someone in without a signal, the credits are posted when the check-in is sent.
If you Undo a check-in, or cancel the registration, the credits it posted are withdrawn.
To see who has been credited, open the event and go to the Credits tab. It lists each attendee, their credits, the category, the date earned and when they were posted. The event's Overview also shows how many credits have been posted so far.
Members see on the event's page that credits are posted when they are checked in at the door, and afterwards that the credits have been posted to their record. An Apple Wallet ticket for the event shows the credits too.