Class DefaultTabbyPaymentValidator
java.lang.Object
com.broadleafcommerce.tabby.service.DefaultTabbyPaymentValidator
- All Implemented Interfaces:
com.broadleafcommerce.paymentgateway.service.PaymentGatewayPaymentValidator
,com.broadleafcommerce.paymentgateway.service.PaymentGatewayTypeAware
,TabbyPaymentValidator
The default implementation of
TabbyPaymentValidator
.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefaultTabbyPaymentValidator
(TabbyConfigurationProperties configurationProperties, com.fasterxml.jackson.databind.ObjectMapper objectMapper) -
Method Summary
Modifier and TypeMethodDescriptionprotected <T> T
protected TabbyConfigurationProperties
protected String
getMerchantCode
(@NonNull Map<String, String> paymentMethodProperties, String applicationId, String tenantId) protected com.fasterxml.jackson.databind.ObjectMapper
protected void
validateMerchantCode
(@NonNull Map<String, String> paymentMethodProperties, String applicationId, String tenantId) protected void
validateMerchantUrls
(@NonNull Map<String, String> paymentMethodProperties) void
validatePayment
(@NonNull com.broadleafcommerce.paymentgateway.domain.PaymentValidationRequest paymentValidationRequest, String applicationId, String tenantId) protected void
validateTabbyPayment
(@NonNull Map<String, String> paymentMethodProperties)
-
Field Details
-
MISSING_MERCHANT_CODE
- See Also:
-
REQUIRED_PROPERTIES
- See Also:
-
REQUIRED_MERCHANT_URLS
- See Also:
-
REQUIRED_ORDER_REF
- See Also:
-
-
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 interfacecom.broadleafcommerce.paymentgateway.service.PaymentGatewayPaymentValidator
-
validateMerchantCode
-
getMerchantCode
-
validateTabbyPayment
-
validateMerchantUrls
-
fromJson
protected <T> T fromJson(String json, Class<T> clazz) throws com.fasterxml.jackson.core.JsonProcessingException - Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
getGatewayType
- Specified by:
getGatewayType
in interfacecom.broadleafcommerce.paymentgateway.service.PaymentGatewayTypeAware
-
getConfigurationProperties
-
getObjectMapper
protected com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()
-