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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.broadleafcommerce.paymentgateway.domain.PaymentResponseauthorize(@NonNull com.broadleafcommerce.paymentgateway.domain.PaymentRequest paymentRequest)com.broadleafcommerce.paymentgateway.domain.PaymentResponseauthorizeAndCapture(@NonNull com.broadleafcommerce.paymentgateway.domain.PaymentRequest paymentRequest)protected com.broadleafcommerce.paymentgateway.domain.PaymentResponsebuildExceptionPaymentResponse(@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.PaymentResponsebuildPaymentResponse(com.broadleafcommerce.paymentgateway.domain.PaymentRequest paymentRequest, String gatewayTransactionType, com.broadleafcommerce.paymentgateway.domain.enums.TransactionType transactionType)com.broadleafcommerce.paymentgateway.domain.PaymentResponsecapture(@NonNull com.broadleafcommerce.paymentgateway.domain.PaymentRequest paymentRequest)protected com.broadleafcommerce.paymentgateway.domain.PaymentResponseexecuteCheckoutPaymentRequest(@NonNull com.broadleafcommerce.paymentgateway.domain.PaymentRequest paymentRequest, boolean isCapture)protected CheckoutApiInitServicegetCheckoutApiInitService()StringgetGatewayType()protected com.broadleafcommerce.paymentgateway.util.PaymentResponseUtilgetPaymentResponseUtil()protected CheckoutConfigurationPropertiesgetProperties()protected CheckoutComRequestResponseTransformergetRequestResponseTransformer()protected com.broadleafcommerce.paymentgateway.domain.enums.TransactionTypegetTransactionType(boolean isCapture)protected com.broadleafcommerce.paymentgateway.domain.PaymentResponsehandleExecutionException(@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.PaymentResponserefund(@NonNull com.broadleafcommerce.paymentgateway.domain.PaymentRequest paymentRequest)com.broadleafcommerce.paymentgateway.domain.PaymentResponsereverseAuthorize(@NonNull com.broadleafcommerce.paymentgateway.domain.PaymentRequest paymentRequest)
-
-
-
Constructor Detail
-
DefaultCheckoutComTransactionService
public DefaultCheckoutComTransactionService(CheckoutConfigurationProperties properties, com.broadleafcommerce.paymentgateway.util.PaymentResponseUtil paymentResponseUtil, CheckoutComRequestResponseTransformer requestResponseTransformer, CheckoutApiInitService checkoutApiInitService)
-
-
Method Detail
-
authorize
public com.broadleafcommerce.paymentgateway.domain.PaymentResponse authorize(@NonNull @NonNull com.broadleafcommerce.paymentgateway.domain.PaymentRequest paymentRequest)- Specified by:
authorizein interfacecom.broadleafcommerce.paymentgateway.service.PaymentGatewayTransactionService
-
authorizeAndCapture
public com.broadleafcommerce.paymentgateway.domain.PaymentResponse authorizeAndCapture(@NonNull @NonNull com.broadleafcommerce.paymentgateway.domain.PaymentRequest paymentRequest)- Specified by:
authorizeAndCapturein interfacecom.broadleafcommerce.paymentgateway.service.PaymentGatewayTransactionService
-
capture
public com.broadleafcommerce.paymentgateway.domain.PaymentResponse capture(@NonNull @NonNull com.broadleafcommerce.paymentgateway.domain.PaymentRequest paymentRequest)- Specified by:
capturein interfacecom.broadleafcommerce.paymentgateway.service.PaymentGatewayTransactionService
-
reverseAuthorize
public com.broadleafcommerce.paymentgateway.domain.PaymentResponse reverseAuthorize(@NonNull @NonNull com.broadleafcommerce.paymentgateway.domain.PaymentRequest paymentRequest)- Specified by:
reverseAuthorizein interfacecom.broadleafcommerce.paymentgateway.service.PaymentGatewayTransactionService
-
refund
public com.broadleafcommerce.paymentgateway.domain.PaymentResponse refund(@NonNull @NonNull com.broadleafcommerce.paymentgateway.domain.PaymentRequest paymentRequest)- Specified by:
refundin interfacecom.broadleafcommerce.paymentgateway.service.PaymentGatewayTransactionService
-
getGatewayType
public String getGatewayType()
- Specified by:
getGatewayTypein interfacecom.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)
-
getProperties
protected CheckoutConfigurationProperties getProperties()
-
getPaymentResponseUtil
protected com.broadleafcommerce.paymentgateway.util.PaymentResponseUtil getPaymentResponseUtil()
-
getRequestResponseTransformer
protected CheckoutComRequestResponseTransformer getRequestResponseTransformer()
-
getCheckoutApiInitService
protected CheckoutApiInitService getCheckoutApiInitService()
-
-