Class DefaultCheckoutComTransactionService

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      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.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, @NonNull String errorMessage)  
      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 CheckoutApiInitService getCheckoutApiInitService()  
      String getGatewayType()  
      protected com.broadleafcommerce.paymentgateway.util.PaymentResponseUtil getPaymentResponseUtil()  
      protected CheckoutConfigurationProperties getProperties()  
      protected CheckoutComRequestResponseTransformer getRequestResponseTransformer()  
      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)  
      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 interface com.broadleafcommerce.paymentgateway.service.PaymentGatewayTransactionService

        detachedCredit, identifyParentTransactionReferenceIfExists, identifyTransactionTypeFromTransactionResults
    • Method Detail

      • 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)
      • 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,
                                                                                                            @NonNull
                                                                                                            @NonNull String errorMessage)
      • getPaymentResponseUtil

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