Class DefaultStripePaymentGatewayPaymentValidator

java.lang.Object
com.broadleafcommerce.payment.service.gateway.DefaultStripePaymentGatewayPaymentValidator
All Implemented Interfaces:
StripePaymentGatewayPaymentValidator, com.broadleafcommerce.paymentgateway.service.PaymentGatewayPaymentValidator, com.broadleafcommerce.paymentgateway.service.PaymentGatewayTypeAware

public class DefaultStripePaymentGatewayPaymentValidator extends Object implements StripePaymentGatewayPaymentValidator
The default implementation of StripePaymentGatewayPaymentValidator.
Author:
Dima Myroniuk (dmyroniuk)
  • Field Details

  • Constructor Details

    • DefaultStripePaymentGatewayPaymentValidator

      public DefaultStripePaymentGatewayPaymentValidator(StripeConfiguration gatewayConfiguration)
  • Method Details

    • validatePayment

      public void validatePayment(com.broadleafcommerce.paymentgateway.domain.PaymentValidationRequest paymentValidationRequest, @Nullable String applicationId, @Nullable String tenantId)
      Specified by:
      validatePayment in interface com.broadleafcommerce.paymentgateway.service.PaymentGatewayPaymentValidator
    • hasAuthorizedTransaction

      protected boolean hasAuthorizedTransaction(Set<String> transactionTypes)
    • isAuthorizeOrAuthorizeAndCapture

      protected boolean isAuthorizeOrAuthorizeAndCapture(String transactionType)
    • isPaymentIntentRequest

      protected boolean isPaymentIntentRequest(Map<String,List<String>> authorizeTransactionProperties)
    • getGatewayType

      public String getGatewayType()
      Specified by:
      getGatewayType in interface com.broadleafcommerce.paymentgateway.service.PaymentGatewayTypeAware
    • getGatewayConfiguration

      protected StripeConfiguration getGatewayConfiguration()