Added check for invoice id
Merge pull request #7 from ionux/master

Added check for invoice id