# validateValidationRuleForPaymentRequestAndFieldId static method

Future<List<ValidationErrorMessage>> validateValidationRuleForPaymentRequestAndFieldId(

1. PaymentRequest request,
2. String fieldId,
3. ValidationRule rule

)

## Implementation

    static Future<List<ValidationErrorMessage>> validateValidationRuleForPaymentRequestAndFieldId(PaymentRequest request, String fieldId, ValidationRule rule) async {
      final validationRequest = PaymentRequestRuleValidationRequest(request, fieldId, rule);
      final validationResultStr = await _NativeValidationInterface.instance.validatePaymentRequestForValidationRule(jsonEncode(validationRequest));
      return _parseValidationErrorMessages(validationResultStr);
    }