Class DefaultCheckoutComTransactionService

java.lang.Object
com.broadleafcommerce.payment.service.gateway.DefaultCheckoutComTransactionService
All Implemented Interfaces:
CheckoutComTransactionService, com.broadleafcommerce.paymentgateway.service.PaymentGatewayTransactionService, com.broadleafcommerce.paymentgateway.service.PaymentGatewayTypeAware

public class DefaultCheckoutComTransactionService extends Object implements CheckoutComTransactionService
  • Constructor Summary

    Constructors
    Constructor
    Description
    DefaultCheckoutComTransactionService(CheckoutConfigurationProperties properties, com.broadleafcommerce.paymentgateway.util.PaymentResponseUtil paymentResponseUtil, CheckoutComRequestResponseTransformer requestResponseTransformer, CheckoutApiInitService checkoutApiInitService)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    com.broadleafcommerce.paymentgateway.domain.PaymentResponse
    authorize(@NonNull com.broadleafcommerce.paymentgateway.domain.PaymentRequest paymentRequest)
     
    com.broadleafcommerce.paymentgateway.domain.PaymentResponse
    authorizeAndCapture(@NonNull com.broadleafcommerce.paymentgateway.domain.PaymentRequest paymentRequest)
     
    protected com.checkout.payments.request.PaymentRequest
    buildCheckoutPaymentRequest(@NonNull com.broadleafcommerce.paymentgateway.domain.PaymentRequest paymentRequest, boolean isCapture)
     
    protected com.broadleafcommerce.paymentgateway.domain.PaymentResponse
    buildExceptionPaymentResponse(@NonNull com.broadleafcommerce.paymentgateway.domain.PaymentRequest paymentRequest, @NonNull com.broadleafcommerce.paymentgateway.domain.enums.TransactionType transactionType, @NonNull com.broadleafcommerce.paymentgateway.domain.enums.TransactionFailureType transactionFailureType, String errorMessage)
     
    protected com.broadleafcommerce.paymentgateway.domain.PaymentResponse
    buildPaymentResponse(@NonNull com.broadleafcommerce.paymentgateway.domain.PaymentRequest paymentRequest, boolean isCapture, com.checkout.payments.response.PaymentResponse checkoutPaymentResponse)
     
    protected com.broadleafcommerce.paymentgateway.domain.PaymentResponse
    buildPaymentResponse(com.broadleafcommerce.paymentgateway.domain.PaymentRequest paymentRequest, String gatewayTransactionType, com.broadleafcommerce.paymentgateway.domain.enums.TransactionType transactionType)
     
    com.broadleafcommerce.paymentgateway.domain.PaymentResponse
    capture(@NonNull com.broadleafcommerce.paymentgateway.domain.PaymentRequest paymentRequest)
     
    protected com.broadleafcommerce.paymentgateway.domain.PaymentResponse
    executeCheckoutPaymentRequest(@NonNull com.broadleafcommerce.paymentgateway.domain.PaymentRequest paymentRequest, boolean isCapture)
     
     
     
    protected com.broadleafcommerce.paymentgateway.util.PaymentResponseUtil
     
     
     
    protected com.broadleafcommerce.paymentgateway.domain.enums.TransactionType
    getTransactionType(boolean isCapture)
     
    protected com.broadleafcommerce.paymentgateway.domain.PaymentResponse
    handleExecutionException(@NonNull ExecutionException executionException, @NonNull com.broadleafcommerce.paymentgateway.domain.PaymentRequest paymentRequest, @NonNull String gatewayTransactionType, @NonNull com.broadleafcommerce.paymentgateway.domain.enums.TransactionType transactionType)
     
    protected boolean
    isKnetPayment(@NonNull com.broadleafcommerce.paymentgateway.domain.PaymentRequest paymentRequest)
     
    com.broadleafcommerce.paymentgateway.domain.PaymentResponse
    refund(@NonNull com.broadleafcommerce.paymentgateway.domain.PaymentRequest paymentRequest)
     
    com.broadleafcommerce.paymentgateway.domain.PaymentResponse
    reverseAuthorize(@NonNull com.broadleafcommerce.paymentgateway.domain.PaymentRequest paymentRequest)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.broadleafcommerce.paymentgateway.service.PaymentGatewayTransactionService

    detachedCredit, identifyParentTransactionReferenceIfExists, identifyTransactionTypeFromTransactionResults
  • Constructor Details

  • Method Details

    • authorize

      public com.broadleafcommerce.paymentgateway.domain.PaymentResponse authorize(@NonNull @NonNull com.broadleafcommerce.paymentgateway.domain.PaymentRequest paymentRequest)
      Specified by:
      authorize in interface com.broadleafcommerce.paymentgateway.service.PaymentGatewayTransactionService
    • authorizeAndCapture

      public com.broadleafcommerce.paymentgateway.domain.PaymentResponse authorizeAndCapture(@NonNull @NonNull com.broadleafcommerce.paymentgateway.domain.PaymentRequest paymentRequest)
      Specified by:
      authorizeAndCapture in interface com.broadleafcommerce.paymentgateway.service.PaymentGatewayTransactionService
    • capture

      public com.broadleafcommerce.paymentgateway.domain.PaymentResponse capture(@NonNull @NonNull com.broadleafcommerce.paymentgateway.domain.PaymentRequest paymentRequest)
      Specified by:
      capture in interface com.broadleafcommerce.paymentgateway.service.PaymentGatewayTransactionService
    • reverseAuthorize

      public com.broadleafcommerce.paymentgateway.domain.PaymentResponse reverseAuthorize(@NonNull @NonNull com.broadleafcommerce.paymentgateway.domain.PaymentRequest paymentRequest)
      Specified by:
      reverseAuthorize in interface com.broadleafcommerce.paymentgateway.service.PaymentGatewayTransactionService
    • refund

      public com.broadleafcommerce.paymentgateway.domain.PaymentResponse refund(@NonNull @NonNull com.broadleafcommerce.paymentgateway.domain.PaymentRequest paymentRequest)
      Specified by:
      refund in interface com.broadleafcommerce.paymentgateway.service.PaymentGatewayTransactionService
    • getGatewayType

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

      protected com.broadleafcommerce.paymentgateway.domain.PaymentResponse executeCheckoutPaymentRequest(@NonNull @NonNull com.broadleafcommerce.paymentgateway.domain.PaymentRequest paymentRequest, boolean isCapture)
    • buildCheckoutPaymentRequest

      protected com.checkout.payments.request.PaymentRequest buildCheckoutPaymentRequest(@NonNull @NonNull com.broadleafcommerce.paymentgateway.domain.PaymentRequest paymentRequest, boolean isCapture)
    • buildPaymentResponse

      protected com.broadleafcommerce.paymentgateway.domain.PaymentResponse buildPaymentResponse(@NonNull @NonNull com.broadleafcommerce.paymentgateway.domain.PaymentRequest paymentRequest, boolean isCapture, @NonNull com.checkout.payments.response.PaymentResponse checkoutPaymentResponse)
    • isKnetPayment

      protected boolean isKnetPayment(@NonNull @NonNull com.broadleafcommerce.paymentgateway.domain.PaymentRequest paymentRequest)
    • getTransactionType

      protected com.broadleafcommerce.paymentgateway.domain.enums.TransactionType getTransactionType(boolean isCapture)
    • handleExecutionException

      protected com.broadleafcommerce.paymentgateway.domain.PaymentResponse handleExecutionException(@NonNull @NonNull ExecutionException executionException, @NonNull @NonNull com.broadleafcommerce.paymentgateway.domain.PaymentRequest paymentRequest, @NonNull @NonNull String gatewayTransactionType, @NonNull @NonNull com.broadleafcommerce.paymentgateway.domain.enums.TransactionType transactionType)
    • buildPaymentResponse

      protected com.broadleafcommerce.paymentgateway.domain.PaymentResponse buildPaymentResponse(com.broadleafcommerce.paymentgateway.domain.PaymentRequest paymentRequest, String gatewayTransactionType, com.broadleafcommerce.paymentgateway.domain.enums.TransactionType transactionType)
    • buildExceptionPaymentResponse

      protected com.broadleafcommerce.paymentgateway.domain.PaymentResponse buildExceptionPaymentResponse(@NonNull @NonNull com.broadleafcommerce.paymentgateway.domain.PaymentRequest paymentRequest, @NonNull @NonNull com.broadleafcommerce.paymentgateway.domain.enums.TransactionType transactionType, @NonNull @NonNull com.broadleafcommerce.paymentgateway.domain.enums.TransactionFailureType transactionFailureType, @Nullable String errorMessage)
    • getProperties

      protected CheckoutConfigurationProperties getProperties()
    • getPaymentResponseUtil

      protected com.broadleafcommerce.paymentgateway.util.PaymentResponseUtil getPaymentResponseUtil()
    • getRequestResponseTransformer

      protected CheckoutComRequestResponseTransformer getRequestResponseTransformer()
    • getCheckoutApiInitService

      protected CheckoutApiInitService getCheckoutApiInitService()