com.softslate.commerce.customer.payment
Class PayflowProForm

java.lang.Object
  extended byorg.apache.struts.action.ActionForm
      extended bycom.softslate.commerce.customer.core.BaseForm
          extended bycom.softslate.commerce.customer.payment.BasicPaymentForm
              extended bycom.softslate.commerce.customer.payment.PayflowProForm
All Implemented Interfaces:
java.io.Serializable

public class PayflowProForm
extends BasicPaymentForm

Struts form class for submissions of payment information for Payflow Pro during checkout.

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 Payflow Pro fields and populates the corresponding form properties. It also sets the cert path for Payflow Pro equal to the location of /WEB-INF/conf/keys on the server.

Author:
David Tobey
See Also:
Serialized Form

Field Summary
private  java.lang.String certPath
           
private  java.lang.String comment1
           
private  java.lang.String comment2
           
private  java.lang.String customerCode
           
private  java.lang.String custRef
           
(package private) static org.apache.commons.logging.Log log
           
private  java.lang.String poNumber
           
private static long serialVersionUID
           
 
Fields inherited from class com.softslate.commerce.customer.payment.BasicPaymentForm
 
Fields inherited from class com.softslate.commerce.customer.core.BaseForm
 
Fields inherited from class org.apache.struts.action.ActionForm
multipartRequestHandler, servlet
 
Constructor Summary
PayflowProForm()
           
 
Method Summary
 java.lang.String getCertPath()
           
 java.lang.String getComment1()
           
 java.lang.String getComment2()
           
 java.lang.String getCustomerCode()
           
 java.lang.String getCustRef()
           
 java.lang.String getPoNumber()
           
 void setCertPath(java.lang.String certPath)
           
 void setComment1(java.lang.String comment1)
           
 void setComment2(java.lang.String comment2)
           
 void setCustomerCode(java.lang.String customerCode)
           
 void setCustRef(java.lang.String custRef)
           
 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, getCreditCardNumber, getCreditCardSecurityCode, getCreditCardType, setCreditCardDate, setCreditCardExpirationMonth, setCreditCardExpirationYear, setCreditCardName, setCreditCardNumber, setCreditCardSecurityCode, setCreditCardType, validateDate, validateName, validateNumber, validateSecurityCode, validateType
 
Methods inherited from class com.softslate.commerce.customer.core.BaseForm
getBusinessObjectFactory, getErrors, getMapping, getMessage, getMessages, getRequest, getSettingsBean, getUser, initializeProperties, setBusinessObjectFactory, setErrors, setMapping, setMessages, setRequest, setSettingsBean, 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

comment1

private java.lang.String comment1

comment2

private java.lang.String comment2

certPath

private java.lang.String certPath

custRef

private java.lang.String custRef

customerCode

private java.lang.String customerCode

poNumber

private java.lang.String poNumber
Constructor Detail

PayflowProForm

public PayflowProForm()
Method Detail

getComment1

public java.lang.String getComment1()

setComment1

public void setComment1(java.lang.String comment1)

getComment2

public java.lang.String getComment2()

setComment2

public void setComment2(java.lang.String comment2)

getCertPath

public java.lang.String getCertPath()

setCertPath

public void setCertPath(java.lang.String certPath)

getCustRef

public java.lang.String getCustRef()

setCustRef

public void setCustRef(java.lang.String custRef)

getCustomerCode

public java.lang.String getCustomerCode()

setCustomerCode

public void setCustomerCode(java.lang.String customerCode)

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, Inc. 2003–2005