Class DefaultVerifoneTransactionService
- java.lang.Object
-
- com.broadleafcommerce.payment.service.gateway.DefaultVerifoneTransactionService
-
- All Implemented Interfaces:
VerifoneTransactionService
,com.broadleafcommerce.paymentgateway.service.PaymentGatewayTransactionService
,com.broadleafcommerce.paymentgateway.service.PaymentGatewayTypeAware
public class DefaultVerifoneTransactionService extends Object implements VerifoneTransactionService
- Author:
- Dima Myroniuk (dmyroniuk)
-
-
Constructor Summary
Constructors Constructor Description DefaultVerifoneTransactionService(VerifoneExternalCallService verifoneExternalCallService, com.broadleafcommerce.paymentgateway.util.PaymentResponseUtil paymentResponseUtil, VerifoneUtils verifoneUtils, com.broadleafcommerce.common.extension.TypeFactory typeFactory)
-
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)
com.broadleafcommerce.paymentgateway.domain.PaymentResponse
capture(@NonNull com.broadleafcommerce.paymentgateway.domain.PaymentRequest paymentRequest)
protected String
determineFailureType(Exception e)
String
getGatewayType()
protected com.broadleafcommerce.paymentgateway.util.PaymentResponseUtil
getPaymentResponseUtil()
protected com.broadleafcommerce.common.extension.TypeFactory
getTypeFactory()
protected VerifoneExternalCallService
getVerifoneExternalCallService()
protected VerifoneUtils
getVerifoneUtils()
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)
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(@NonNull com.broadleafcommerce.paymentgateway.domain.PaymentRequest paymentRequest)
protected void
validateAuthorizeRequest(@NonNull com.broadleafcommerce.paymentgateway.domain.PaymentRequest paymentRequest)
protected void
validateCaptureRequest(@NonNull com.broadleafcommerce.paymentgateway.domain.PaymentRequest paymentRequest)
protected void
validateEncryptedCardUsage(@NonNull com.broadleafcommerce.paymentgateway.domain.PaymentRequest paymentRequest)
protected void
validateRefundRequest(@NonNull com.broadleafcommerce.paymentgateway.domain.PaymentRequest paymentRequest)
protected void
validateReuseTokenUsage(@NonNull com.broadleafcommerce.paymentgateway.domain.PaymentRequest paymentRequest)
protected void
validateReverseAuthorizeRequest(@NonNull com.broadleafcommerce.paymentgateway.domain.PaymentRequest paymentRequest)
protected void
validateStoredCredentialSignupRequest(@NonNull com.broadleafcommerce.paymentgateway.domain.PaymentRequest paymentRequest, @NonNull String storedCredentialSignupJson)
protected void
validateStoredCredentialUsage(@NonNull com.broadleafcommerce.paymentgateway.domain.PaymentRequest paymentRequest)
-
-
-
Constructor Detail
-
DefaultVerifoneTransactionService
public DefaultVerifoneTransactionService(VerifoneExternalCallService verifoneExternalCallService, com.broadleafcommerce.paymentgateway.util.PaymentResponseUtil paymentResponseUtil, VerifoneUtils verifoneUtils, com.broadleafcommerce.common.extension.TypeFactory typeFactory)
-
-
Method Detail
-
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
-
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
-
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
-
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
public String getGatewayType()
- Specified by:
getGatewayType
in interfacecom.broadleafcommerce.paymentgateway.service.PaymentGatewayTypeAware
-
validateAuthorizeRequest
protected void validateAuthorizeRequest(@NonNull @NonNull com.broadleafcommerce.paymentgateway.domain.PaymentRequest paymentRequest)
-
validateStoredCredentialUsage
protected void validateStoredCredentialUsage(@NonNull @NonNull com.broadleafcommerce.paymentgateway.domain.PaymentRequest paymentRequest)
-
validateReuseTokenUsage
protected void validateReuseTokenUsage(@NonNull @NonNull com.broadleafcommerce.paymentgateway.domain.PaymentRequest paymentRequest)
-
validateEncryptedCardUsage
protected void validateEncryptedCardUsage(@NonNull @NonNull com.broadleafcommerce.paymentgateway.domain.PaymentRequest paymentRequest)
-
validateStoredCredentialSignupRequest
protected void validateStoredCredentialSignupRequest(@NonNull @NonNull com.broadleafcommerce.paymentgateway.domain.PaymentRequest paymentRequest, @NonNull @NonNull String storedCredentialSignupJson)
-
validateReverseAuthorizeRequest
protected void validateReverseAuthorizeRequest(@NonNull @NonNull com.broadleafcommerce.paymentgateway.domain.PaymentRequest paymentRequest)
-
validateAuthorizeAndCaptureRequest
protected void validateAuthorizeAndCaptureRequest(@NonNull @NonNull com.broadleafcommerce.paymentgateway.domain.PaymentRequest paymentRequest)
-
validateCaptureRequest
protected void validateCaptureRequest(@NonNull @NonNull com.broadleafcommerce.paymentgateway.domain.PaymentRequest paymentRequest)
-
validateRefundRequest
protected void validateRefundRequest(@NonNull @NonNull com.broadleafcommerce.paymentgateway.domain.PaymentRequest paymentRequest)
-
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)
-
getVerifoneExternalCallService
protected VerifoneExternalCallService getVerifoneExternalCallService()
-
getPaymentResponseUtil
protected com.broadleafcommerce.paymentgateway.util.PaymentResponseUtil getPaymentResponseUtil()
-
getVerifoneUtils
protected VerifoneUtils getVerifoneUtils()
-
getTypeFactory
protected com.broadleafcommerce.common.extension.TypeFactory getTypeFactory()
-
-