After you have completed all the quizzes in a course, you will see a "Results" link at the top of the course:
Click the "Results" link, and you will go to a page where you can see the results of your performance on each quiz:
You will note that the "Grade" section at the top right is empty:
The "Grade" section is empty because you still need to submit your quiz results, on order to get your final grade.
(In some Leanpub courses, you can have multiple attempts for each quiz. So, you may be able to try a quiz again, even after you have completed all the quizzes the first time. That is why you need to choose submit your results manually, even after you have completed all the quizzes.)
Scroll down on the Results page until you see the "Complete Course" button:
If you're ready to get your final grade, click the "Complete Course" button. This may bring up a warning, if you have any quiz attempts remaining:
If you're ready to submit the course, click the "OK" button:
If you scroll to the top of the page, you will now see the "Grade" section has been filled:
If you passed the course, when you scroll to the bottom of the page, you will see a button that says "Generate Certificate"
Click the "Generate Certificate" button, and you will see a message that says "Check your email, or refresh this page in a few minutes":
You will now receive an email from Leanpub with the subject "[Leanpub] Your Certificate".
To download your certificate, click the download link in the email:
You will then get a certificate proving you have passed the course. We have a number of different styles of certificates. Here is an example: