com.softslate.commerce.customer.payment
Class PayflowProACHForm
java.lang.Object
org.apache.struts.action.ActionForm
com.softslate.commerce.customer.core.BaseForm
com.softslate.commerce.customer.payment.BasicPaymentForm
com.softslate.commerce.customer.payment.PayflowProForm
com.softslate.commerce.customer.payment.PayflowProACHForm
- All Implemented Interfaces:
- java.io.Serializable
public class PayflowProACHForm
- extends PayflowProForm
Struts form class for submissions of bank account information for PayPal Payflow
Pro's ACH processing during checkout. This form corresponds to the
PayflowProACHProcessor
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
bank account 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:
- Ashish Jain
- See Also:
- Serialized Form
Fields inherited from class org.apache.struts.action.ActionForm |
multipartRequestHandler, servlet |
Methods inherited from class com.softslate.commerce.customer.payment.PayflowProForm |
getCertPath, getComment1, getComment2, getCustomerCode, getCustRef, getPoNumber, payflowValidate, setCertPath, setComment1, setComment2, setCustomerCode, setCustRef, setPoNumber |
Methods inherited from class com.softslate.commerce.customer.payment.BasicPaymentForm |
getCreditCardDate, getCreditCardExpirationMonth, getCreditCardExpirationYear, getCreditCardName, getCreditCardSecurityCode, getCreditCardType, getDecryptedNumber, getTextFromImage, setCreditCardDate, setCreditCardExpirationMonth, setCreditCardExpirationYear, setCreditCardName, setCreditCardSecurityCode, setCreditCardType, setDecryptedNumber, setTextFromImage, validateDate, validateJcaptcha, 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 |
log
static org.apache.commons.logging.Log log
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
ACCT_TYPE_CHECKING
public static final java.lang.String ACCT_TYPE_CHECKING
- See Also:
- Constant Field Values
ACCT_TYPE_SAVINGS
public static final java.lang.String ACCT_TYPE_SAVINGS
- See Also:
- Constant Field Values
validAcctTypes
public static final java.lang.String[] validAcctTypes
isABARoutingNumberRequired
public static final boolean isABARoutingNumberRequired
- See Also:
- Constant Field Values
isAccountNumberRequired
public static final boolean isAccountNumberRequired
- See Also:
- Constant Field Values
isAccountTypeRequired
public static final boolean isAccountTypeRequired
- See Also:
- Constant Field Values
nameOnAccount
private java.lang.String nameOnAccount
ABARoutingNumber
private java.lang.String ABARoutingNumber
acctNumber
private java.lang.String acctNumber
acctType
private java.lang.String acctType
PayflowProACHForm
public PayflowProACHForm()
validate
public org.apache.struts.action.ActionErrors validate(org.apache.struts.action.ActionMapping mapping,
javax.servlet.http.HttpServletRequest request)
- Overrides:
validate
in class PayflowProForm
payflowProACHValidate
protected void payflowProACHValidate()
validateNameOnAccount
protected void validateNameOnAccount()
validateABANumber
protected void validateABANumber()
validateAcctNumber
protected void validateAcctNumber()
validateAcctType
protected void validateAcctType()
validateNumberCommon
public java.lang.String validateNumberCommon(java.lang.String number,
boolean isReq,
int minLength,
int maxLength,
java.lang.String message)
getABARoutingNumber
public java.lang.String getABARoutingNumber()
setABARoutingNumber
public void setABARoutingNumber(java.lang.String routingNumber)
getAcctNumber
public java.lang.String getAcctNumber()
setAcctNumber
public void setAcctNumber(java.lang.String acctNumber)
getNameOnAccount
public java.lang.String getNameOnAccount()
setNameOnAccount
public void setNameOnAccount(java.lang.String nameOnAccount)
getAcctType
public java.lang.String getAcctType()
setAcctType
public void setAcctType(java.lang.String acctType)
Copyright © SoftSlate, LLC 20032005