Factoring invoice URL into a plugin