You need to rework the payment module code so that it doesn't send error messages in the URL. It needs to use $messageStack instead.