com.softslate.commerce.customer.payment
Class AuthorizeNetForm

java.lang.Object
  extended by org.apache.struts.action.ActionForm
      extended by com.softslate.commerce.customer.core.BaseForm
          extended by com.softslate.commerce.customer.payment.BasicPaymentForm
              extended by com.softslate.commerce.customer.payment.AuthorizeNetForm
All Implemented Interfaces:
java.io.Serializable

public class AuthorizeNetForm
extends BasicPaymentForm

Struts form class for submissions of payment information for Authorize.net during checkout. This form corresponds to the 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:
Serialized Form

Field Summary
private  java.lang.String customerID
           
private  java.lang.String description
           
private  java.lang.String invoiceNumber
           
(package private) static org.apache.commons.logging.Log log
           
private  java.lang.String poNumber
           
private static long serialVersionUID
           
 
Fields inherited from class org.apache.struts.action.ActionForm
multipartRequestHandler, servlet
 
Constructor Summary
AuthorizeNetForm()
           
 
Method Summary
 java.lang.String getCustomerID()
           
 java.lang.String getDescription()
           
 java.lang.String getInvoiceNumber()
           
 java.lang.String getPoNumber()
           
 void setCustomerID(java.lang.String customerID)
           
 void setDescription(java.lang.String description)
           
 void setInvoiceNumber(java.lang.String invoiceNumber)
           
 void setPoNumber(java.lang.String poNumber)
           
 org.apache.struts.action.ActionErrors validate(org.apache.struts.action.ActionMapping mapping, javax.servlet.http.HttpServletRequest request)
           
 
Methods inherited from class com.softslate.commerce.customer.payment.BasicPaymentForm
getCreditCardDate, getCreditCardExpirationMonth, getCreditCardExpirationYear, getCreditCardName, getCreditCardSecurityCode, getCreditCardType, getDecryptedNumber, setCreditCardDate, setCreditCardExpirationMonth, setCreditCardExpirationYear, setCreditCardName, setCreditCardSecurityCode, setCreditCardType, setDecryptedNumber, validateDate, validateName, validateNumber, validateSecurityCode, validateType
 
Methods inherited from class com.softslate.commerce.customer.core.BaseForm
formUtils, getBusinessObjectFactory, getErrors, getMapping, getMessage, getMessages, getRequest, getSettings, getUser, initializeProperties, setBusinessObjectFactory, setErrors, setMapping, setMessages, setRequest, setSettings, setUser
 
Methods inherited from class org.apache.struts.action.ActionForm
getMultipartRequestHandler, getServlet, getServletWrapper, reset, reset, setMultipartRequestHandler, setServlet, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

log

static org.apache.commons.logging.Log log

description

private java.lang.String description

customerID

private java.lang.String customerID

invoiceNumber

private java.lang.String invoiceNumber

poNumber

private java.lang.String poNumber
Constructor Detail

AuthorizeNetForm

public AuthorizeNetForm()
Method Detail

getCustomerID

public java.lang.String getCustomerID()

setCustomerID

public void setCustomerID(java.lang.String customerID)

getDescription

public java.lang.String getDescription()

setDescription

public void setDescription(java.lang.String description)

getInvoiceNumber

public java.lang.String getInvoiceNumber()

setInvoiceNumber

public void setInvoiceNumber(java.lang.String invoiceNumber)

getPoNumber

public java.lang.String getPoNumber()

setPoNumber

public void setPoNumber(java.lang.String poNumber)

validate

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


Copyright ? SoftSlate, LLC 2003?2005