org.broadleafcommerce.vendor.authorizenet.service.payment
Class AuthorizeNetPaymentServiceImpl

java.lang.Object
  extended by org.broadleafcommerce.vendor.authorizenet.service.payment.AuthorizeNetPaymentServiceImpl
All Implemented Interfaces:
org.broadleafcommerce.common.vendor.service.monitor.ServiceStatusDetectable<AuthorizeNetPaymentRequest>, AuthorizeNetPaymentService

@Service(value="blAuthorizeNetVendorOrientedPaymentService")
public class AuthorizeNetPaymentServiceImpl
extends Object
implements AuthorizeNetPaymentService, org.broadleafcommerce.common.vendor.service.monitor.ServiceStatusDetectable<AuthorizeNetPaymentRequest>

Author:
elbertbautista

Field Summary
protected  Integer failureCount
           
protected  Integer failureReportingThreshold
           
protected  AuthorizeNetGatewayRequest gatewayRequest
           
protected  Boolean isUp
           
 
Constructor Summary
AuthorizeNetPaymentServiceImpl()
           
 
Method Summary
protected  void clearStatus()
           
protected  String communicateWithVendor(AuthorizeNetPaymentRequest paymentRequest)
           
 net.authorize.sim.Result createResult(Map<String,String[]> responseMap)
           
 Integer getFailureReportingThreshold()
           
 AuthorizeNetGatewayRequest getGatewayRequest()
           
 String getServiceName()
           
 org.broadleafcommerce.common.vendor.service.type.ServiceStatusType getServiceStatus()
           
protected  void incrementFailure()
           
 Object process(AuthorizeNetPaymentRequest arg)
           
 void setFailureReportingThreshold(Integer failureReportingThreshold)
           
 void setGatewayRequest(AuthorizeNetGatewayRequest gatewayRequest)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

failureReportingThreshold

protected Integer failureReportingThreshold

failureCount

protected Integer failureCount

isUp

protected Boolean isUp

gatewayRequest

protected AuthorizeNetGatewayRequest gatewayRequest
Constructor Detail

AuthorizeNetPaymentServiceImpl

public AuthorizeNetPaymentServiceImpl()
Method Detail

clearStatus

protected void clearStatus()

incrementFailure

protected void incrementFailure()

getServiceStatus

public org.broadleafcommerce.common.vendor.service.type.ServiceStatusType getServiceStatus()
Specified by:
getServiceStatus in interface org.broadleafcommerce.common.vendor.service.monitor.ServiceStatusDetectable<AuthorizeNetPaymentRequest>
Specified by:
getServiceStatus in interface AuthorizeNetPaymentService

getServiceName

public String getServiceName()
Specified by:
getServiceName in interface org.broadleafcommerce.common.vendor.service.monitor.ServiceStatusDetectable<AuthorizeNetPaymentRequest>

process

public Object process(AuthorizeNetPaymentRequest arg)
               throws Exception
Specified by:
process in interface org.broadleafcommerce.common.vendor.service.monitor.ServiceStatusDetectable<AuthorizeNetPaymentRequest>
Specified by:
process in interface AuthorizeNetPaymentService
Throws:
Exception

communicateWithVendor

protected String communicateWithVendor(AuthorizeNetPaymentRequest paymentRequest)
                                throws IOException
Throws:
IOException

getFailureReportingThreshold

public Integer getFailureReportingThreshold()
Specified by:
getFailureReportingThreshold in interface AuthorizeNetPaymentService

setFailureReportingThreshold

public void setFailureReportingThreshold(Integer failureReportingThreshold)
Specified by:
setFailureReportingThreshold in interface AuthorizeNetPaymentService

createResult

public net.authorize.sim.Result createResult(Map<String,String[]> responseMap)
Specified by:
createResult in interface AuthorizeNetPaymentService

getGatewayRequest

public AuthorizeNetGatewayRequest getGatewayRequest()
Specified by:
getGatewayRequest in interface AuthorizeNetPaymentService

setGatewayRequest

public void setGatewayRequest(AuthorizeNetGatewayRequest gatewayRequest)
Specified by:
setGatewayRequest in interface AuthorizeNetPaymentService


Copyright © 2012. All Rights Reserved.