Class AuthorizeNetForm

java.lang.Object
org.apache.struts.action.ActionForm
All Implemented Interfaces:
Serializable

public class AuthorizeNetForm extends BasicPaymentForm
Struts form class for submissions of payment information for Authorize.net during checkout. This form corresponds to the com.softslate.commerce.businessobjects.payment.AuthorizeNetProcessor payment processor.

The database settings "activePaymentProcessors", "activePaymentForms", and "activePaymentFormTemplate" represent the various payment methods available to users. During checkout, each of the "activePaymentForms" will be instantiated and prepared for display on the checkout payment screen. When the user submits payment information the validate method of the corresponding payment form is invoked.

The validate method of this class ensures that the incoming credit card information is valid and complete. It then parses the database settings for various PayflowLink fields and populates the corresponding form properties.

Author:
David Tobey
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      See Also:
    • log

      static org.apache.commons.logging.Log log
    • description

      private String description
    • customerID

      private String customerID
    • invoiceNumber

      private String invoiceNumber
    • poNumber

      private String poNumber
    • ipAddress

      private String ipAddress
    • acceptJsDataValue

      private String acceptJsDataValue
    • acceptJsDataDesc

      private String acceptJsDataDesc
    • acceptJsCheckTotal

      private String acceptJsCheckTotal
    • savePaymentInformation

      private String savePaymentInformation
    • paymentProfileID

      private String paymentProfileID
    • action

      private String action
    • response

      private String response
  • Constructor Details

    • AuthorizeNetForm

      public AuthorizeNetForm()
  • Method Details

    • getCustomerID

      public String getCustomerID()
    • setCustomerID

      public void setCustomerID(String customerID)
    • getDescription

      public String getDescription()
    • setDescription

      public void setDescription(String description)
    • getInvoiceNumber

      public String getInvoiceNumber()
    • setInvoiceNumber

      public void setInvoiceNumber(String invoiceNumber)
    • getPoNumber

      public String getPoNumber()
    • setPoNumber

      public void setPoNumber(String poNumber)
    • getIpAddress

      public String getIpAddress()
    • setIpAddress

      public void setIpAddress(String ipAddress)
    • getAcceptJsDataValue

      public String getAcceptJsDataValue()
    • setAcceptJsDataValue

      public void setAcceptJsDataValue(String acceptJsDataValue)
    • getAcceptJsDataDesc

      public String getAcceptJsDataDesc()
    • setAcceptJsDataDesc

      public void setAcceptJsDataDesc(String acceptJsDataDesc)
    • getAcceptJsCheckTotal

      public String getAcceptJsCheckTotal()
    • setAcceptJsCheckTotal

      public void setAcceptJsCheckTotal(String acceptJsCheckTotal)
    • getSavePaymentInformation

      public String getSavePaymentInformation()
    • setSavePaymentInformation

      public void setSavePaymentInformation(String savePaymentInformation)
    • getPaymentProfileID

      public String getPaymentProfileID()
    • setPaymentProfileID

      public void setPaymentProfileID(String paymentProfileID)
    • getAction

      public String getAction()
    • setAction

      public void setAction(String action)
    • getResponse

      public String getResponse()
    • setResponse

      public void setResponse(String response)
    • validate

      public org.apache.struts.action.ActionErrors validate(org.apache.struts.action.ActionMapping mapping, javax.servlet.http.HttpServletRequest request)
      Overrides:
      validate in class BasicPaymentForm
    • populateReferenceFields

      protected void populateReferenceFields(ActionUtils actionUtils)
    • validateAcceptJsParams

      protected void validateAcceptJsParams()
    • validateCardAndCode

      protected boolean validateCardAndCode()
    • preparePaymentFormHook

      public void preparePaymentFormHook(Boolean validating, BaseForm baseForm) throws Exception
      Throws:
      Exception