adding logging to payment process