Interface PaymentGatewayPaymentValidator
-
- All Superinterfaces:
PaymentGatewayTypeAware
- All Known Subinterfaces:
PassthroughPaymentValidator
- All Known Implementing Classes:
DefaultPassthroughPaymentValidator
public interface PaymentGatewayPaymentValidator extends PaymentGatewayTypeAware
Validator meant to ensure thatPaymentValidationRequest
objects are sufficiently configured, allowing transactions to be executed via the relatedPaymentGatewayTransactionService
implementation.- Author:
- Chris Kittrell (ckittrell)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
validatePayment(PaymentValidationRequest paymentValidationRequest, String applicationId, String tenantId)
Validates that thePaymentValidationRequest
is sufficiently configured to execute transactions for the gateway integration.-
Methods inherited from interface com.broadleafcommerce.paymentgateway.service.PaymentGatewayTypeAware
getGatewayType
-
-
-
-
Method Detail
-
validatePayment
void validatePayment(PaymentValidationRequest paymentValidationRequest, @Nullable String applicationId, @Nullable String tenantId)
Validates that thePaymentValidationRequest
is sufficiently configured to execute transactions for the gateway integration.- Parameters:
paymentValidationRequest
- The paymentValidationRequest to be validatedapplicationId
- The application idtenantId
- The tenant id- Throws:
InvalidPaymentConfigurationException
- if the payment configuration is not sufficient for the related gateway integration.
-
-