Interface PaymentGatewayPaymentValidator
-
- All Superinterfaces:
PaymentGatewayTypeAware
- All Known Subinterfaces:
PassthroughPaymentValidator
- All Known Implementing Classes:
DefaultPassthroughPaymentValidator
public interface PaymentGatewayPaymentValidator extends PaymentGatewayTypeAware
Validator meant to ensure thatPaymentValidationRequestobjects are sufficiently configured, allowing transactions to be executed via the relatedPaymentGatewayTransactionServiceimplementation.- Author:
- Chris Kittrell (ckittrell)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidvalidatePayment(PaymentValidationRequest paymentValidationRequest, String applicationId, String tenantId)Validates that thePaymentValidationRequestis 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 thePaymentValidationRequestis 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.
-
-