Class 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 Details

    • log

      static org.apache.commons.logging.Log log
  • Constructor Details

    • AuthorizeNetDPMProcessor

      public AuthorizeNetDPMProcessor()
  • Method Details

    • process

      public Map process(Map parameters) throws 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:
      Exception
    • addPayment

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