Certificate Module for Moodle 3.1 needed
You can utilize an already developed open-source module available at [login to view URL] as your starting point.
When the course administrator sets up the certificate on the course, the administrator sets a total credit amount.
When learner generates the certificate, the learner must select the amount of credit claimed (dropdown box) which shows amounts in 15 minute increments up to the total credit amount. For example: values of 0.25, 0.50, 0.75, 1.00 show in the dropdown for a 1.00 credit hour course. It could be that the administrator can put these values in like (0.25, 0.50, 0.75, 1.00) to offer more flexible functionality.
As the certificate is generated, participation data from the moodle course, including amount of credit claimed is written to an external database.