Class PayflowProForm
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
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
PayflowProACHForm,PayPalUKDirectForm
Struts form class for submissions of payment information for PayPal Payflow
Pro during checkout. This form corresponds to the
PayflowProProcessor
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 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:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Stringprivate Stringprivate Stringprivate Stringprivate String(package private) static org.apache.commons.logging.Logprivate Stringprivate static final longFields inherited from class org.apache.struts.action.ActionForm
multipartRequestHandler, servlet -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.struts.action.ActionErrorsvoidsetCertPath(String certPath) voidsetComment1(String comment1) voidsetComment2(String comment2) voidsetCustomerCode(String customerCode) voidsetCustRef(String custRef) voidsetPoNumber(String poNumber) org.apache.struts.action.ActionErrorsvalidate(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, getTextFromImage, setCreditCardDate, setCreditCardExpirationMonth, setCreditCardExpirationYear, setCreditCardName, setCreditCardSecurityCode, setCreditCardType, setDecryptedNumber, setTextFromImage, validateDate, validateJcaptcha, validateName, validateNumber, validateSecurityCode, validateTypeMethods 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, setUserMethods 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 -
comment1
-
comment2
-
certPath
-
custRef
-
customerCode
-
poNumber
-
-
Constructor Details
-
PayflowProForm
public PayflowProForm()
-
-
Method Details
-
getComment1
-
setComment1
-
getComment2
-
setComment2
-
getCertPath
-
setCertPath
-
getCustRef
-
setCustRef
-
getCustomerCode
-
setCustomerCode
-
getPoNumber
-
setPoNumber
-
validate
public org.apache.struts.action.ActionErrors validate(org.apache.struts.action.ActionMapping mapping, javax.servlet.http.HttpServletRequest request) - Overrides:
validatein classBasicPaymentForm
-
payflowValidate
public org.apache.struts.action.ActionErrors payflowValidate()
-