Class BasicPaymentForm
java.lang.Object
org.apache.struts.action.ActionForm
com.softslate.commerce.customer.core.BaseForm
com.softslate.commerce.customer.payment.BasicPaymentForm
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
AuthorizeNetDPMForm
,AuthorizeNetForm
,FirstDataForm
,PayflowLinkForm
,PayflowProForm
,PayPalDirectForm
Default Struts form class for submissions of payment information during
checkout. This form corresponds to the
BasicPaymentProcessor
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.
- Author:
- David Tobey
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprivate String
private String
private String
private String
private String
private String
private String
(package private) static org.apache.commons.logging.Log
private static final long
private String
Fields inherited from class org.apache.struts.action.ActionForm
multipartRequestHandler, servlet
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
setCreditCardDate
(String creditCardDate) void
void
void
setCreditCardName
(String creditCardName) void
setCreditCardSecurityCode
(String string) void
setCreditCardType
(String string) void
setDecryptedNumber
(String decryptedNumber) void
setTextFromImage
(String textFromImage) org.apache.struts.action.ActionErrors
validate
(org.apache.struts.action.ActionMapping mapping, javax.servlet.http.HttpServletRequest request) void
void
void
void
void
void
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
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
log
static org.apache.commons.logging.Log log -
creditCardName
-
creditCardType
-
decryptedNumber
-
creditCardSecurityCode
-
creditCardExpirationMonth
-
creditCardExpirationYear
-
creditCardDate
-
textFromImage
-
-
Constructor Details
-
BasicPaymentForm
public BasicPaymentForm()
-
-
Method Details
-
getTextFromImage
-
setTextFromImage
-
getCreditCardExpirationMonth
-
getCreditCardExpirationYear
-
getDecryptedNumber
-
setDecryptedNumber
-
getCreditCardSecurityCode
-
getCreditCardType
-
getCreditCardDate
-
setCreditCardDate
-
setCreditCardExpirationMonth
-
setCreditCardExpirationYear
-
setCreditCardSecurityCode
-
setCreditCardType
-
getCreditCardName
-
setCreditCardName
-
validate
public org.apache.struts.action.ActionErrors validate(org.apache.struts.action.ActionMapping mapping, javax.servlet.http.HttpServletRequest request) - Overrides:
validate
in classorg.apache.struts.action.ActionForm
-
validateName
public void validateName() -
validateType
public void validateType() -
validateDate
public void validateDate() -
validateSecurityCode
public void validateSecurityCode() -
validateNumber
public void validateNumber() -
validateJcaptcha
public void validateJcaptcha()
-