added invoice method to find the merchant