I am using a Payment Gateway to process payments in my application. However, I am getting weird behaviour which I do not know where to start looking into to diagnose the problem