Fix payment logging

Add logging context for payment views
Remove references to handler name and potentially unintialised variables
Fix logging across session commit/begin
Fix for running dev on a remote server