Add logging to payments.js