org.broadleafcommerce.vendor.authorizenet.service.payment
Class AuthorizeNetPaymentServiceImpl
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
failureReportingThreshold
protected Integer failureReportingThreshold
failureCount
protected Integer failureCount
isUp
protected Boolean isUp
gatewayRequest
protected AuthorizeNetGatewayRequest gatewayRequest
AuthorizeNetPaymentServiceImpl
public AuthorizeNetPaymentServiceImpl()
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.