Interface PaymentGatewayPaymentValidator

All Superinterfaces:
PaymentGatewayTypeAware
All Known Subinterfaces:
PassthroughPaymentValidator
All Known Implementing Classes:
DefaultPassthroughPaymentValidator

public interface PaymentGatewayPaymentValidator extends PaymentGatewayTypeAware
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 Details

    • validatePayment

      void validatePayment(PaymentValidationRequest paymentValidationRequest, @Nullable String applicationId, @Nullable String tenantId)
      Validates that the PaymentValidationRequest is sufficiently configured to execute transactions for the gateway integration.
      Parameters:
      paymentValidationRequest - The paymentValidationRequest to be validated
      applicationId - The application id
      tenantId - The tenant id
      Throws:
      InvalidPaymentConfigurationException - if the payment configuration is not sufficient for the related gateway integration.