added support for custom payment policies