Class BrowserInfo

java.lang.Object
paypal.payflow.BrowserInfo

public final class BrowserInfo extends Object
  • 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

      public String getBrowserCountryCode()
      Gets the browser's country code.
      Returns:
      browserCountryCode String

      Maps to Payflow Parameter: BROWSERCOUNTRYCODE

    • setBrowserCountryCode

      public void setBrowserCountryCode(String browserCountryCode)
      Sets the browser's country code.
      Parameters:
      browserCountryCode - String

      Maps to Payflow Parameter: BROWSERCOUNTRYCODE

    • getBrowserTime

      public String getBrowserTime()
      Gets the browser time.

      Browser's local time.

      Returns:
      browserTime String

      Maps to Payflow Parameter: BROWSERTIME

    • setBrowserTime

      public void setBrowserTime(String browserTime)
      Sets the browser time.

      Browser's local time.

      Parameters:
      browserTime - String

      Maps to Payflow Parameter: BROWSERTIME

    • getBrowserUserAgent

      public String getBrowserUserAgent()
      Gets the browser user agent.
      Returns:
      browserUserAgent String

      Maps to Payflow Parameter: BROWSERUSERAGENT

    • setBrowserUserAgent

      public void setBrowserUserAgent(String browserUserAgent)
      Sets the browser user agent.
      Parameters:
      browserUserAgent - String

      Maps to Payflow Parameter: BROWSERUSERAGENT

    • getButtonSource

      public String getButtonSource()
      Gets the ButtonSource for Direct Payment and Express checkout.
      Returns:
      buttonSource String

      Maps to Payflow Parameter : BUTTONSOURCE

    • setButtonSource

      public void setButtonSource(String buttonSource)
      Sets the ButtonSource for Direct Payment and Express Checkout.
      Parameters:
      buttonSource - String

      Maps to Payflow Parameter : BUTTONSOURCE

    • getCustom

      public String getCustom()
      Gets Custom for Direct Payment and Express Checkout.
      Returns:
      custom String

      Maps to Payflow Parameter : CUSTOM

    • setCustom

      public void setCustom(String custom)
      Sets Custom for Direct Payment and Express Checkout.
      Parameters:
      custom - String

      Maps to Payflow Parameter : CUSTOM

    • getMerchantSessionId

      public String getMerchantSessionId()
      Gets the merchantSessionId for Direct Payment and Express Checkout.
      Returns:
      merchantSessionId String

      Maps to Payflow Parameter : MERCHANTSESSIONID

    • setMerchantSessionId

      public void setMerchantSessionId(String merchantSessionId)
      Sets the merchantSessionId for Direct Payment and Express Checkout.
      Parameters:
      merchantSessionId - String

      Maps to Payflow Parameter : MERCHANTSESSIONID

    • getNotifyURL

      public String getNotifyURL()
      Gets the notifyURL String for Direct Payments and Express Checkout.
      Returns:
      notifyURL String

      Maps to Payflow Parameter : NOTIFYURL

    • setNotifyURL

      public void setNotifyURL(String notifyURL)
      Sets the notifyURL for DirectP ayments and Express Checkout.
      Parameters:
      notifyURL - String

      Maps to Payflow Parameter : NOTIFYURL

    • 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