What is the version of the following sentence with correct punctuation?

When your next salary is due your lender deposits the check in his checking out and gets paid without any issues
When your next salary is due, your lender deposits the check in his checking out and gets paid without any issues.