Add option to get payment by payment number

This is useful if you have to send the payment number to a gateway and then get the payment ID from it.
Merge pull request #2616 from elliott-stocks/patch-7

Add option to get payment by payment number