Rewrote a lot parts to extract 'payments' table (+ handling) into own extension: