Package paypal.payflow
Class BrowserInfo
java.lang.Object
paypal.payflow.BrowserInfo
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidGets the browser's country code.Gets the browser time.Gets the browser user agent.Gets the ButtonSource for Direct Payment and Express checkout.protected ContextGets Custom for Direct Payment and Express Checkout.Gets the merchantSessionId for Direct Payment and Express Checkout.Gets the notifyURL String for Direct Payments and Express Checkout.protected StringBufferGets the Requestbuffer used for creating the actual request string.voidsetBrowserCountryCode(String browserCountryCode) Sets the browser's country code.voidsetBrowserTime(String browserTime) Sets the browser time.voidsetBrowserUserAgent(String browserUserAgent) Sets the browser user agent.voidsetButtonSource(String buttonSource) Sets the ButtonSource for Direct Payment and Express Checkout.protected voidsetContext(Context context) voidSets Custom for Direct Payment and Express Checkout.voidsetMerchantSessionId(String merchantSessionId) Sets the merchantSessionId for Direct Payment and Express Checkout.voidsetNotifyURL(String notifyURL) Sets the notifyURL for DirectP ayments and Express Checkout.protected voidsetRequestBuffer(StringBuffer value) sets the StringBuffer to hold the request string.
-
Constructor Details
-
BrowserInfo
public BrowserInfo()Used for Browser related information.Use the BrowserInfo object for the user browser related information.
Following example shows how to use a Browser Info object.
................. // inv is the Invoice object ................. // Set the Browser Info details. BrowserInfo browser = New BrowserInfo(); browser.setBrowserCountryCode ("USA"); browser.setBrowserUserAgent ("IE 6.0"); inv.setBrowserInfo (browser); .................
-
-
Method Details
-
generateRequest
protected void generateRequest() -
getBrowserCountryCode
Gets the browser's country code.- Returns:
- browserCountryCode String
Maps to Payflow Parameter: BROWSERCOUNTRYCODE
-
setBrowserCountryCode
Sets the browser's country code.- Parameters:
browserCountryCode- StringMaps to Payflow Parameter: BROWSERCOUNTRYCODE
-
getBrowserTime
Gets the browser time.Browser's local time.
- Returns:
- browserTime String
Maps to Payflow Parameter: BROWSERTIME
-
setBrowserTime
Sets the browser time.Browser's local time.
- Parameters:
browserTime- StringMaps to Payflow Parameter: BROWSERTIME
-
getBrowserUserAgent
Gets the browser user agent.- Returns:
- browserUserAgent String
Maps to Payflow Parameter: BROWSERUSERAGENT
-
setBrowserUserAgent
Sets the browser user agent.- Parameters:
browserUserAgent- StringMaps to Payflow Parameter: BROWSERUSERAGENT
-
getButtonSource
Gets the ButtonSource for Direct Payment and Express checkout.- Returns:
- buttonSource String
Maps to Payflow Parameter : BUTTONSOURCE
-
setButtonSource
Sets the ButtonSource for Direct Payment and Express Checkout.- Parameters:
buttonSource- StringMaps to Payflow Parameter : BUTTONSOURCE
-
getCustom
Gets Custom for Direct Payment and Express Checkout.- Returns:
- custom String
Maps to Payflow Parameter : CUSTOM
-
setCustom
Sets Custom for Direct Payment and Express Checkout.- Parameters:
custom- StringMaps to Payflow Parameter : CUSTOM
-
getMerchantSessionId
Gets the merchantSessionId for Direct Payment and Express Checkout.- Returns:
- merchantSessionId String
Maps to Payflow Parameter : MERCHANTSESSIONID
-
setMerchantSessionId
Sets the merchantSessionId for Direct Payment and Express Checkout.- Parameters:
merchantSessionId- StringMaps to Payflow Parameter : MERCHANTSESSIONID
-
getNotifyURL
Gets the notifyURL String for Direct Payments and Express Checkout.- Returns:
- notifyURL String
Maps to Payflow Parameter : NOTIFYURL
-
setNotifyURL
Sets the notifyURL for DirectP ayments and Express Checkout.- Parameters:
notifyURL- StringMaps to Payflow Parameter : NOTIFYURL
-
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
-