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
ConstructorDescriptionDefaultCheckoutComTransactionService
(CheckoutConfigurationProperties properties, com.broadleafcommerce.paymentgateway.util.PaymentResponseUtil paymentResponseUtil, CheckoutComRequestResponseTransformer requestResponseTransformer, CheckoutApiInitService checkoutApiInitService) -
Method Summary
Modifier and TypeMethodDescriptioncom.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 CheckoutApiInitService
protected com.broadleafcommerce.paymentgateway.util.PaymentResponseUtil
protected CheckoutConfigurationProperties
protected CheckoutComRequestResponseTransformer
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
-
DefaultCheckoutComTransactionService
public DefaultCheckoutComTransactionService(CheckoutConfigurationProperties properties, com.broadleafcommerce.paymentgateway.util.PaymentResponseUtil paymentResponseUtil, CheckoutComRequestResponseTransformer requestResponseTransformer, CheckoutApiInitService checkoutApiInitService)
-
-
Method Details
-
authorize
public com.broadleafcommerce.paymentgateway.domain.PaymentResponse authorize(@NonNull @NonNull com.broadleafcommerce.paymentgateway.domain.PaymentRequest paymentRequest) - Specified by:
authorize
in interfacecom.broadleafcommerce.paymentgateway.service.PaymentGatewayTransactionService
-
authorizeAndCapture
public com.broadleafcommerce.paymentgateway.domain.PaymentResponse authorizeAndCapture(@NonNull @NonNull com.broadleafcommerce.paymentgateway.domain.PaymentRequest paymentRequest) - Specified by:
authorizeAndCapture
in interfacecom.broadleafcommerce.paymentgateway.service.PaymentGatewayTransactionService
-
capture
public com.broadleafcommerce.paymentgateway.domain.PaymentResponse capture(@NonNull @NonNull com.broadleafcommerce.paymentgateway.domain.PaymentRequest paymentRequest) - Specified by:
capture
in interfacecom.broadleafcommerce.paymentgateway.service.PaymentGatewayTransactionService
-
reverseAuthorize
public com.broadleafcommerce.paymentgateway.domain.PaymentResponse reverseAuthorize(@NonNull @NonNull com.broadleafcommerce.paymentgateway.domain.PaymentRequest paymentRequest) - Specified by:
reverseAuthorize
in interfacecom.broadleafcommerce.paymentgateway.service.PaymentGatewayTransactionService
-
refund
public com.broadleafcommerce.paymentgateway.domain.PaymentResponse refund(@NonNull @NonNull com.broadleafcommerce.paymentgateway.domain.PaymentRequest paymentRequest) - Specified by:
refund
in interfacecom.broadleafcommerce.paymentgateway.service.PaymentGatewayTransactionService
-
getGatewayType
- Specified by:
getGatewayType
in interfacecom.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
-
getPaymentResponseUtil
protected com.broadleafcommerce.paymentgateway.util.PaymentResponseUtil getPaymentResponseUtil() -
getRequestResponseTransformer
-
getCheckoutApiInitService
-