Class AuthorizeNetForm
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.AuthorizeNetForm
- All Implemented Interfaces:
Serializable
Struts form class for submissions of payment information for Authorize.net
during checkout. This form corresponds to the
com.softslate.commerce.businessobjects.payment.AuthorizeNetProcessor
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 PayflowLink fields and populates the corresponding form
properties.
- Author:
- David Tobey
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprivate String
private String
private String
private String
private String
private String
private String
private String
(package private) static org.apache.commons.logging.Log
private String
private String
private String
private String
private static final long
Fields inherited from class org.apache.struts.action.ActionForm
multipartRequestHandler, servlet
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
populateReferenceFields
(ActionUtils actionUtils) void
preparePaymentFormHook
(Boolean validating, BaseForm baseForm) void
setAcceptJsCheckTotal
(String acceptJsCheckTotal) void
setAcceptJsDataDesc
(String acceptJsDataDesc) void
setAcceptJsDataValue
(String acceptJsDataValue) void
void
setCustomerID
(String customerID) void
setDescription
(String description) void
setInvoiceNumber
(String invoiceNumber) void
setIpAddress
(String ipAddress) void
setPaymentProfileID
(String paymentProfileID) void
setPoNumber
(String poNumber) void
setResponse
(String response) void
setSavePaymentInformation
(String savePaymentInformation) org.apache.struts.action.ActionErrors
validate
(org.apache.struts.action.ActionMapping mapping, javax.servlet.http.HttpServletRequest request) protected void
protected boolean
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
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
log
static org.apache.commons.logging.Log log -
description
-
customerID
-
invoiceNumber
-
poNumber
-
ipAddress
-
acceptJsDataValue
-
acceptJsDataDesc
-
acceptJsCheckTotal
-
savePaymentInformation
-
paymentProfileID
-
action
-
response
-
-
Constructor Details
-
AuthorizeNetForm
public AuthorizeNetForm()
-
-
Method Details
-
getCustomerID
-
setCustomerID
-
getDescription
-
setDescription
-
getInvoiceNumber
-
setInvoiceNumber
-
getPoNumber
-
setPoNumber
-
getIpAddress
-
setIpAddress
-
getAcceptJsDataValue
-
setAcceptJsDataValue
-
getAcceptJsDataDesc
-
setAcceptJsDataDesc
-
getAcceptJsCheckTotal
-
setAcceptJsCheckTotal
-
getSavePaymentInformation
-
setSavePaymentInformation
-
getPaymentProfileID
-
setPaymentProfileID
-
getAction
-
setAction
-
getResponse
-
setResponse
-
validate
public org.apache.struts.action.ActionErrors validate(org.apache.struts.action.ActionMapping mapping, javax.servlet.http.HttpServletRequest request) - Overrides:
validate
in classBasicPaymentForm
-
populateReferenceFields
-
validateAcceptJsParams
protected void validateAcceptJsParams() -
validateCardAndCode
protected boolean validateCardAndCode() -
preparePaymentFormHook
- Throws:
Exception
-