#637: Check if the payment message is valid before submission