com.softslate.commerce.businessobjects.payment
Class AuthorizeNetDPMProcessor

java.lang.Object
  extended by com.softslate.commerce.businessobjects.core.BaseBusinessObject
      extended by com.softslate.commerce.businessobjects.core.BaseBusinessProcessor
          extended by com.softslate.commerce.businessobjects.payment.BasePaymentProcessor
              extended by com.softslate.commerce.businessobjects.payment.AuthorizeNetDPMProcessor
All Implemented Interfaces:
BusinessObject, BusinessProcessor, PaymentProcessor

public class AuthorizeNetDPMProcessor
extends BasePaymentProcessor
implements PaymentProcessor

Business object for AuthorizeNet Direct Post Method

Author:
Tony Zakula

Field Summary
(package private) static org.apache.commons.logging.Log log
           
 
Constructor Summary
AuthorizeNetDPMProcessor()
           
 
Method Summary
protected  void addPayment(Order order, java.util.Map parameters, int orderId, boolean error)
           
 java.util.Map process(java.util.Map parameters)
          This method is a assuming the action calling it has determined we have an approved transaction, and it is being used by the relay response action from Authorize.
 
Methods inherited from class com.softslate.commerce.businessobjects.payment.BasePaymentProcessor
findPaymentWithLiveInfo, processPayment
 
Methods inherited from class com.softslate.commerce.businessobjects.core.BaseBusinessProcessor
formatDateTime, formatPrice, getAppComponents, getAppSettings, getAttributeIDs, getBusinessObjectFactory, getDaoFactory, getProductIDs, getSettings, getUser, initialize, loadMatchingSkus, parseDateTime, parseResponseData, prepareRequestData, sendHTTPPost, sendHTTPPost, setAppComponents, setAppSettings, setBusinessObjectFactory, setDaoFactory, setSettings, setUser, updateOrderTotals, updateOrderTotals, utils
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.softslate.commerce.businessobjects.payment.PaymentProcessor
processPayment
 
Methods inherited from interface com.softslate.commerce.businessobjects.core.BusinessProcessor
getAppComponents, getAppSettings, getBusinessObjectFactory, getDaoFactory, getSettings, getUser, setAppComponents, setAppSettings, setBusinessObjectFactory, setDaoFactory, setSettings, setUser, utils
 
Methods inherited from interface com.softslate.commerce.businessobjects.core.BusinessObject
initialize
 

Field Detail

log

static org.apache.commons.logging.Log log
Constructor Detail

AuthorizeNetDPMProcessor

public AuthorizeNetDPMProcessor()
Method Detail

process

public java.util.Map process(java.util.Map parameters)
                      throws java.lang.Exception
This method is a assuming the action calling it has determined we have an approved transaction, and it is being used by the relay response action from Authorize.

Specified by:
process in class BasePaymentProcessor
Parameters:
parameters - A Map containing the values of the user's submitted payment information.
Returns:
A Map containing a least one key named "resultCode", which contains a String parsable into an int, representing the results of the processing. 0 for the resultCode indicates success. Optionally, the Map may include additional keys, such as "resultMessage", a string describing the results of the processing.
Throws:
java.lang.Exception

addPayment

protected void addPayment(Order order,
                          java.util.Map parameters,
                          int orderId,
                          boolean error)
                   throws java.lang.Exception
Throws:
java.lang.Exception


Copyright © SoftSlate, LLC 2003–2010