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:
Serializable
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:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate String
static final String
static final String
private String
private String
static final boolean
static final boolean
static final boolean
(package private) static org.apache.commons.logging.Log
private String
private static final long
static final String[]
Fields inherited from class org.apache.struts.action.ActionForm
multipartRequestHandler, servlet
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
void
setABARoutingNumber
(String routingNumber) void
setAcctNumber
(String acctNumber) void
setAcctType
(String acctType) void
setNameOnAccount
(String nameOnAccount) org.apache.struts.action.ActionErrors
validate
(org.apache.struts.action.ActionMapping mapping, javax.servlet.http.HttpServletRequest request) protected void
protected void
protected void
protected void
validateNumberCommon
(String number, boolean isReq, int minLength, int maxLength, String message) 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, html5OrXhtml, 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
-
Field Details
-
log
static org.apache.commons.logging.Log log -
serialVersionUID
private static final long serialVersionUID- See Also:
-
ACCT_TYPE_CHECKING
- See Also:
-
ACCT_TYPE_SAVINGS
- See Also:
-
validAcctTypes
-
isABARoutingNumberRequired
public static final boolean isABARoutingNumberRequired- See Also:
-
isAccountNumberRequired
public static final boolean isAccountNumberRequired- See Also:
-
isAccountTypeRequired
public static final boolean isAccountTypeRequired- See Also:
-
nameOnAccount
-
ABARoutingNumber
-
acctNumber
-
acctType
-
-
Constructor Details
-
PayflowProACHForm
public PayflowProACHForm()
-
-
Method Details
-
validate
public org.apache.struts.action.ActionErrors validate(org.apache.struts.action.ActionMapping mapping, javax.servlet.http.HttpServletRequest request) - Overrides:
validate
in classPayflowProForm
-
payflowProACHValidate
protected void payflowProACHValidate() -
validateNameOnAccount
protected void validateNameOnAccount() -
validateABANumber
protected void validateABANumber() -
validateAcctNumber
protected void validateAcctNumber() -
validateAcctType
protected void validateAcctType() -
validateNumberCommon
-
getABARoutingNumber
-
setABARoutingNumber
-
getAcctNumber
-
setAcctNumber
-
getNameOnAccount
-
setNameOnAccount
-
getAcctType
-
setAcctType
-