Package paypal.payflow
Class PayflowConnectionData
java.lang.Object
paypal.payflow.PayflowConnectionData
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 Summary
ConstructorsConstructorDescriptionConstructorPayflowConnectionData(String HostAddress) ConstructorPayflowConnectionData(String HostAddress, int HostPort) ConstructorPayflowConnectionData(String HostAddress, int HostPort, int Timeout) ConstructorPayflowConnectionData(String HostAddress, int HostPort, int TimeOut, String ProxyAddress, int ProxyPort, String ProxyLogon, String ProxyPassword) ConstructorPayflowConnectionData(String HostAddress, int HostPort, String ProxyAddress, int ProxyPort, String ProxyLogon, String ProxyPassword) Constructor -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected ContextGets HostAddress.intGets the Host port.Port 443 is used.Gets Proxy server address.Gets proxy Logon.Gets the proxy password.intGets the proxy port.protected StringBufferGets the Requestbuffer used for creating the actual request string.intGets Time-out period for the transaction.protected voidsetContext(Context context) protected voidsetRequestBuffer(StringBuffer value) sets the StringBuffer to hold the request string.
-
Constructor Details
-
PayflowConnectionData
public PayflowConnectionData()Constructor -
PayflowConnectionData
Constructor- Parameters:
HostAddress- String
-
PayflowConnectionData
Constructor- Parameters:
HostAddress- StringHostPort- IntegerTimeout- Integer
-
PayflowConnectionData
public PayflowConnectionData(String HostAddress, int HostPort, int TimeOut, String ProxyAddress, int ProxyPort, String ProxyLogon, String ProxyPassword) Constructor- Parameters:
HostAddress- StringHostPort- IntegerTimeOut- IntegerProxyAddress- StringProxyPort- IntegerProxyLogon- StringProxyPassword- String
-
PayflowConnectionData
Constructor- Parameters:
HostAddress- StringHostPort- Integer
-
PayflowConnectionData
public PayflowConnectionData(String HostAddress, int HostPort, String ProxyAddress, int ProxyPort, String ProxyLogon, String ProxyPassword) Constructor- Parameters:
HostAddress- StringHostPort- IntegerProxyAddress- StringProxyPort- IntegerProxyLogon- StringProxyPassword- String
-
-
Method Details
-
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
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
Gets proxy Logon.- Returns:
- 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
-
setContext
-
getRequestBuffer
Gets the Requestbuffer used for creating the actual request string.- Returns:
- mRequestBuffer StringBuffer
-
setRequestBuffer
sets the StringBuffer to hold the request string.- Parameters:
value- StringBuffer
-
generateRequest
protected void generateRequest()
-