Reworking hookPayment to work with 1.4