add support for pay and notify