corrected check on whether payment is due
Merge pull request #5 from yamatt/master

corrected check on whether payment is due