wtforms raise a validation error after the form is validated
问题 I have a registration form that collects credit card info. The workflow is as follows: User enters registration data and card data through stripe. The form is validated for registration data. If the form is valid, payment is processed. If payment goes through, it's all good, the user is registered and moves on. If the payment fails, i want to be able to raise a validation error on a hidden field of the form. Is that possible? Here's a the form submission code: def register(): form =