Class DefaultTabbyPaymentValidator

java.lang.Object
com.broadleafcommerce.tabby.service.DefaultTabbyPaymentValidator
All Implemented Interfaces:
com.broadleafcommerce.paymentgateway.service.PaymentGatewayPaymentValidator, com.broadleafcommerce.paymentgateway.service.PaymentGatewayTypeAware, TabbyPaymentValidator

public class DefaultTabbyPaymentValidator extends Object implements TabbyPaymentValidator
The default implementation of TabbyPaymentValidator.
  • Field Details

  • Constructor Details

    • DefaultTabbyPaymentValidator

      public DefaultTabbyPaymentValidator(TabbyConfigurationProperties configurationProperties, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
  • Method Details

    • validatePayment

      public void validatePayment(@NonNull @NonNull com.broadleafcommerce.paymentgateway.domain.PaymentValidationRequest paymentValidationRequest, @Nullable String applicationId, @Nullable String tenantId)
      Specified by:
      validatePayment in interface com.broadleafcommerce.paymentgateway.service.PaymentGatewayPaymentValidator
    • validateMerchantCode

      protected void validateMerchantCode(@NonNull @NonNull Map<String,String> paymentMethodProperties, @Nullable String applicationId, @Nullable String tenantId)
    • getMerchantCode

      @Nullable protected String getMerchantCode(@NonNull @NonNull Map<String,String> paymentMethodProperties, @Nullable String applicationId, @Nullable String tenantId)
    • validateTabbyPayment

      protected void validateTabbyPayment(@NonNull @NonNull Map<String,String> paymentMethodProperties)
    • validateMerchantUrls

      protected void validateMerchantUrls(@NonNull @NonNull Map<String,String> paymentMethodProperties)
    • fromJson

      protected <T> T fromJson(String json, Class<T> clazz) throws com.fasterxml.jackson.core.JsonProcessingException
      Throws:
      com.fasterxml.jackson.core.JsonProcessingException
    • getGatewayType

      public String getGatewayType()
      Specified by:
      getGatewayType in interface com.broadleafcommerce.paymentgateway.service.PaymentGatewayTypeAware
    • getConfigurationProperties

      protected TabbyConfigurationProperties getConfigurationProperties()
    • getObjectMapper

      protected com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()