Interface CountryValidatorHolder


  • public interface CountryValidatorHolder
    • Method Detail

      • getCountryIdentifier

        String getCountryIdentifier()
        Returns country identifier for which payment validators will be applied
        Returns:
        country identifier
      • getPaymentBodyFieldsValidator

        PaymentBodyFieldsValidator getPaymentBodyFieldsValidator()
        Returns payment body fields validator for validating format of the payment
        Returns:
        body validator
      • getPaymentBusinessValidator

        PaymentBusinessValidator getPaymentBusinessValidator()
        Returns payment business validator for executing custom validation according to specific business rules.

        Will be executed after validating payment fields, but before any call to SPI.

        Returns:
        business validator
      • isCustom

        default boolean isCustom()
        Defines either country validation holder is custom or not. Needs to override default configurations on xs2a connector.
        Returns:
        true for custom holders (default value), false - for predefined holders.