Class DefaultAPSTransactionService
java.lang.Object
com.broadleafcommerce.payment.service.gateway.DefaultAPSTransactionService
- All Implemented Interfaces:
APSTransactionService
,com.broadleafcommerce.paymentgateway.service.PaymentGatewayTransactionService
,com.broadleafcommerce.paymentgateway.service.PaymentGatewayTypeAware
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultAPSTransactionService
(APSExternalCallService apsExternalCallService, com.broadleafcommerce.paymentgateway.util.PaymentResponseUtil paymentResponseUtil, com.broadleafcommerce.common.extension.TypeFactory typeFactory) -
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) com.broadleafcommerce.paymentgateway.domain.PaymentResponse
capture
(@NonNull com.broadleafcommerce.paymentgateway.domain.PaymentRequest paymentRequest) protected String
protected APSExternalCallService
protected com.broadleafcommerce.paymentgateway.util.PaymentResponseUtil
protected com.broadleafcommerce.common.extension.TypeFactory
protected com.broadleafcommerce.paymentgateway.domain.PaymentResponse
handleUnexpectedException
(@NonNull com.broadleafcommerce.paymentgateway.domain.PaymentRequest paymentRequest, @NonNull com.broadleafcommerce.paymentgateway.domain.enums.TransactionType transactionType, @NonNull Exception e) identifyParentTransactionReferenceIfExists
(Map<String, Object> transactionProperties, Map<String, Object> paymentProperties) com.broadleafcommerce.paymentgateway.domain.enums.TransactionType
identifyTransactionTypeFromTransactionResults
(Map<String, Object> transactionProperties, Map<String, Object> paymentProperties) 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) protected void
validateAuthorizeAndCaptureRequest
(com.broadleafcommerce.paymentgateway.domain.PaymentRequest paymentRequest) protected void
validateAuthorizeRequest
(com.broadleafcommerce.paymentgateway.domain.PaymentRequest paymentRequest) ************************** VALIDATION METHODS **************************protected void
validateCaptureRequest
(com.broadleafcommerce.paymentgateway.domain.PaymentRequest paymentRequest) protected void
validateRefundPaymentRequest
(com.broadleafcommerce.paymentgateway.domain.PaymentRequest paymentRequest) protected void
validateReverseAuthorizationRequest
(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, identifyTransactionReferenceIdOverrideForInitialTransaction
-
Constructor Details
-
DefaultAPSTransactionService
public DefaultAPSTransactionService(APSExternalCallService apsExternalCallService, com.broadleafcommerce.paymentgateway.util.PaymentResponseUtil paymentResponseUtil, com.broadleafcommerce.common.extension.TypeFactory typeFactory)
-
-
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
-
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
-
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
-
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
-
handleUnexpectedException
protected com.broadleafcommerce.paymentgateway.domain.PaymentResponse handleUnexpectedException(@NonNull @NonNull com.broadleafcommerce.paymentgateway.domain.PaymentRequest paymentRequest, @NonNull @NonNull com.broadleafcommerce.paymentgateway.domain.enums.TransactionType transactionType, @NonNull @NonNull Exception e) -
determineFailureType
-
validateAuthorizeRequest
protected void validateAuthorizeRequest(com.broadleafcommerce.paymentgateway.domain.PaymentRequest paymentRequest) ************************** VALIDATION METHODS ************************** -
validateCaptureRequest
protected void validateCaptureRequest(com.broadleafcommerce.paymentgateway.domain.PaymentRequest paymentRequest) -
validateAuthorizeAndCaptureRequest
protected void validateAuthorizeAndCaptureRequest(com.broadleafcommerce.paymentgateway.domain.PaymentRequest paymentRequest) -
validateRefundPaymentRequest
protected void validateRefundPaymentRequest(com.broadleafcommerce.paymentgateway.domain.PaymentRequest paymentRequest) -
validateReverseAuthorizationRequest
protected void validateReverseAuthorizationRequest(com.broadleafcommerce.paymentgateway.domain.PaymentRequest paymentRequest) -
identifyParentTransactionReferenceIfExists
@Nullable public String identifyParentTransactionReferenceIfExists(Map<String, Object> transactionProperties, Map<String, Object> paymentProperties) - Specified by:
identifyParentTransactionReferenceIfExists
in interfacecom.broadleafcommerce.paymentgateway.service.PaymentGatewayTransactionService
-
identifyTransactionTypeFromTransactionResults
public com.broadleafcommerce.paymentgateway.domain.enums.TransactionType identifyTransactionTypeFromTransactionResults(Map<String, Object> transactionProperties, Map<String, Object> paymentProperties) - Specified by:
identifyTransactionTypeFromTransactionResults
in interfacecom.broadleafcommerce.paymentgateway.service.PaymentGatewayTransactionService
-
getApsExternalCallService
-
getPaymentResponseUtil
protected com.broadleafcommerce.paymentgateway.util.PaymentResponseUtil getPaymentResponseUtil() -
getTypeFactory
protected com.broadleafcommerce.common.extension.TypeFactory getTypeFactory()
-