Class PayflowConnectionData

java.lang.Object
paypal.payflow.PayflowConnectionData

public final class PayflowConnectionData extends Object
Used for Payflow Host related information.

This class stores the information related to connection to the PayPal payment gateway. If the empty constructor of this class is used to create the object, or passed values are empty, then The following values (if empty) are looked for as follows: Property From Internal Default From SDK Properties Payflow Host - NA - HostAddress Payflow Port- 443 - HostPort Transaction timeout - 45 seconds - NA

  • Constructor Details

    • PayflowConnectionData

      public PayflowConnectionData()
      Constructor
    • PayflowConnectionData

      public PayflowConnectionData(String HostAddress)
      Constructor
      Parameters:
      HostAddress - String
    • PayflowConnectionData

      public PayflowConnectionData(String HostAddress, int HostPort, int Timeout)
      Constructor
      Parameters:
      HostAddress - String
      HostPort - Integer
      Timeout - Integer
    • PayflowConnectionData

      public PayflowConnectionData(String HostAddress, int HostPort, int TimeOut, String ProxyAddress, int ProxyPort, String ProxyLogon, String ProxyPassword)
      Constructor
      Parameters:
      HostAddress - String
      HostPort - Integer
      TimeOut - Integer
      ProxyAddress - String
      ProxyPort - Integer
      ProxyLogon - String
      ProxyPassword - String
    • PayflowConnectionData

      public PayflowConnectionData(String HostAddress, int HostPort)
      Constructor
      Parameters:
      HostAddress - String
      HostPort - Integer
    • PayflowConnectionData

      public PayflowConnectionData(String HostAddress, int HostPort, String ProxyAddress, int ProxyPort, String ProxyLogon, String ProxyPassword)
      Constructor
      Parameters:
      HostAddress - String
      HostPort - Integer
      ProxyAddress - String
      ProxyPort - Integer
      ProxyLogon - String
      ProxyPassword - String
  • Method Details

    • getHostAddress

      public String getHostAddress()
      Gets HostAddress. It is PayPal's HostName
      Returns:
      String
    • getHostPort

      public int getHostPort()
      Gets the Host port.Port 443 is used.
      Returns:
      int
    • getProxyAddress

      public String getProxyAddress()
      Gets Proxy server address. Use the PROXY parameters for servers behind a firewall. Your network administrator can provide the values.
      Returns:
      String
    • getProxyPort

      public int getProxyPort()
      Gets the proxy port.
      Returns:
      int
    • getProxyLogon

      public String getProxyLogon()
      Gets proxy Logon.
      Returns:
      String
    • getProxyPassword

      public String getProxyPassword()
      Gets the proxy password.
      Returns:
      String
    • getTimeOut

      public int getTimeOut()
      Gets Time-out period for the transaction. The minimum recommended time-out value is 30 seconds. The client begins tracking from the time that it sends the transaction request to the server.
      Returns:
      int
    • getContext

      protected Context getContext()
    • setContext

      protected void setContext(Context context)
    • getRequestBuffer

      protected StringBuffer getRequestBuffer()
      Gets the Requestbuffer used for creating the actual request string.
      Returns:
      mRequestBuffer StringBuffer
    • setRequestBuffer

      protected void setRequestBuffer(StringBuffer value)
      sets the StringBuffer to hold the request string.
      Parameters:
      value - StringBuffer
    • generateRequest

      protected void generateRequest()