org.broadleafcommerce.vendor.cybersource.service.payment
Class CyberSourceCreditCardPaymentServiceImpl

java.lang.Object
  extended by org.broadleafcommerce.vendor.cybersource.service.AbstractCyberSourceService
      extended by org.broadleafcommerce.vendor.cybersource.service.payment.AbstractCyberSourcePaymentService
          extended by org.broadleafcommerce.vendor.cybersource.service.payment.CyberSourceCreditCardPaymentServiceImpl
All Implemented Interfaces:
ServiceStatusDetectable, CyberSourceService, CyberSourcePaymentService

public class CyberSourceCreditCardPaymentServiceImpl
extends AbstractCyberSourcePaymentService
implements CyberSourcePaymentService

Author:
jfischer

Field Summary
 
Fields inherited from class org.broadleafcommerce.vendor.cybersource.service.AbstractCyberSourceService
failureCount, failureReportingThreshold, idGenerationService, isUp, libVersion, merchantId, serverUrl
 
Constructor Summary
CyberSourceCreditCardPaymentServiceImpl()
           
 
Method Summary
protected  RequestMessage buildRequestMessage(CyberSourcePaymentRequest paymentRequest)
           
protected  void buildResponse(CyberSourcePaymentResponse paymentResponse, ReplyMessage reply)
           
 boolean isValidService(CyberSourceRequest request)
           
protected  void logReply(ReplyMessage reply)
           
 CyberSourcePaymentResponse process(CyberSourcePaymentRequest paymentRequest)
           
protected  void setBillingInformation(CyberSourcePaymentRequest paymentRequest, RequestMessage request)
           
protected  void setCardInformation(CyberSourcePaymentRequest paymentRequest, RequestMessage request)
           
protected  void setItemInformation(CyberSourcePaymentRequest paymentRequest, RequestMessage request)
           
 
Methods inherited from class org.broadleafcommerce.vendor.cybersource.service.AbstractCyberSourceService
clearStatus, getFailureReportingThreshold, getIdGenerationService, getLibVersion, getMerchantId, getServerUrl, getServiceName, getServiceStatus, incrementFailure, sendRequest, setFailureReportingThreshold, setIdGenerationService, setLibVersion, setMerchantId, setServerUrl
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.broadleafcommerce.vendor.cybersource.service.CyberSourceService
getFailureReportingThreshold, getLibVersion, getMerchantId, getServerUrl, getServiceName, getServiceStatus, setFailureReportingThreshold, setLibVersion, setMerchantId, setServerUrl
 

Constructor Detail

CyberSourceCreditCardPaymentServiceImpl

public CyberSourceCreditCardPaymentServiceImpl()
Method Detail

process

public CyberSourcePaymentResponse process(CyberSourcePaymentRequest paymentRequest)
                                   throws PaymentException
Specified by:
process in interface CyberSourcePaymentService
Throws:
PaymentException

buildResponse

protected void buildResponse(CyberSourcePaymentResponse paymentResponse,
                             ReplyMessage reply)

buildRequestMessage

protected RequestMessage buildRequestMessage(CyberSourcePaymentRequest paymentRequest)
Overrides:
buildRequestMessage in class AbstractCyberSourcePaymentService

setBillingInformation

protected void setBillingInformation(CyberSourcePaymentRequest paymentRequest,
                                     RequestMessage request)

setCardInformation

protected void setCardInformation(CyberSourcePaymentRequest paymentRequest,
                                  RequestMessage request)

setItemInformation

protected void setItemInformation(CyberSourcePaymentRequest paymentRequest,
                                  RequestMessage request)

isValidService

public boolean isValidService(CyberSourceRequest request)
Specified by:
isValidService in interface CyberSourceService

logReply

protected void logReply(ReplyMessage reply)


Copyright © 2012. All Rights Reserved.