Class PayflowProForm

java.lang.Object
org.apache.struts.action.ActionForm
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
PayflowProACHForm, PayPalUKDirectForm

public class PayflowProForm extends BasicPaymentForm
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 Details

    • serialVersionUID

      private static final long serialVersionUID
      See Also:
    • log

      static org.apache.commons.logging.Log log
    • comment1

      private String comment1
    • comment2

      private String comment2
    • certPath

      private String certPath
    • custRef

      private String custRef
    • customerCode

      private String customerCode
    • poNumber

      private String poNumber
  • Constructor Details

    • PayflowProForm

      public PayflowProForm()
  • Method Details

    • getComment1

      public String getComment1()
    • setComment1

      public void setComment1(String comment1)
    • getComment2

      public String getComment2()
    • setComment2

      public void setComment2(String comment2)
    • getCertPath

      public String getCertPath()
    • setCertPath

      public void setCertPath(String certPath)
    • getCustRef

      public String getCustRef()
    • setCustRef

      public void setCustRef(String custRef)
    • getCustomerCode

      public String getCustomerCode()
    • setCustomerCode

      public void setCustomerCode(String customerCode)
    • getPoNumber

      public String getPoNumber()
    • setPoNumber

      public void setPoNumber(String poNumber)
    • validate

      public org.apache.struts.action.ActionErrors validate(org.apache.struts.action.ActionMapping mapping, javax.servlet.http.HttpServletRequest request)
      Overrides:
      validate in class BasicPaymentForm
    • payflowValidate

      public org.apache.struts.action.ActionErrors payflowValidate()