Class PurchaseOrderPaymentForm
java.lang.Object
org.apache.struts.action.ActionForm
com.softslate.commerce.customer.core.BaseForm
com.softslate.commerce.customer.payment.PurchaseOrderPaymentForm
- All Implemented Interfaces:
Serializable
Struts form class for users electing to send the store payment by purchase
order. This form corresponds to the
PurchaseOrderPaymentProcessor
payment processor.
Stores can use this form and the corresponding processor to offer payment by purchase order as an option for their customers. Payment will be marked "Pending". Once the payment is received, the store administrator can look up and process the order.
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 simply returns a success
result.
- Author:
- Jason McWilliams
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) static org.apache.commons.logging.Log
private String
private String
private static final long
Fields inherited from class org.apache.struts.action.ActionForm
multipartRequestHandler, servlet
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
setPurchaseOrderNotes
(String purchaseOrderNotes) void
setPurchaseOrderNumber
(String purchaseOrderNumber) 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.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 -
purchaseOrderNumber
-
purchaseOrderNotes
-
-
Constructor Details
-
PurchaseOrderPaymentForm
public PurchaseOrderPaymentForm()
-
-
Method Details
-
getPurchaseOrderNumber
-
setPurchaseOrderNumber
-
getPurchaseOrderNotes
-
setPurchaseOrderNotes
-
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
-