Interface PaymentGatewayPaymentValidator
- All Superinterfaces:
PaymentGatewayTypeAware
- All Known Subinterfaces:
PassthroughPaymentValidator
- All Known Implementing Classes:
DefaultPassthroughPaymentValidator
Validator meant to ensure that
PaymentValidationRequest
objects are sufficiently
configured, allowing transactions to be executed via the related
PaymentGatewayTransactionService
implementation.- Author:
- Chris Kittrell (ckittrell)
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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 Details
-
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.
-