fixed the payment error messages and the payment generation