function invalidinvoice

It was misspelled and not matching up with the correctly spelled defined one in the common.php file.
Merge pull request #33 from david62311/patch-25

function invalidinvoice