validate method

Validates all fields based on their value and their validation rules. If a field is prefilled from the AccountOnFile, but it has been altered, it will be validated. Returns a list of ValidationErrorMessage.

Implementation

Future<List<ValidationErrorMessage>> validate() async {
  final errorMessages =
      await PaymentRequestValidator.validatePaymentRequest(this);
  errorMessageIds = errorMessages;
  return errorMessages;
}