Class PayPalDirectForm

java.lang.Object
org.apache.struts.action.ActionForm
All Implemented Interfaces:
Serializable

public class PayPalDirectForm extends BasicPaymentForm
Struts form class for submissions of payment information for PayPal Direct during checkout. This form corresponds to the PayPalDirectProcessor 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 also sets the customer's IP address in the form so it can be passed to PayPal.

Author:
David Tobey
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      See Also:
    • log

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

      private String ipAddress
  • Constructor Details

    • PayPalDirectForm

      public PayPalDirectForm()
  • Method Details

    • getIpAddress

      public String getIpAddress()
    • setIpAddress

      public void setIpAddress(String ipAddress)
    • validate

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