Class CustomerInfo

java.lang.Object
paypal.payflow.CustomerInfo

public final class CustomerInfo extends Object
Used for Customer related information.

Use this class to set the customer related information.

................. // inv is the Invoice object ................. // Set the Customer Info details. CustomerInfo cust = new CustomerInfo(); cust.setCustCode ("CustXXXXX"); cust.setCustIP ("255.255.255.255"); inv.setCustomerInfo (cust); .................
  • Constructor Details

    • CustomerInfo

      public CustomerInfo()
      Constructor

      Use this class to set the customer related information.

  • Method Details

    • generateRequest

      protected void generateRequest()
    • getCustCode

      public String getCustCode()
      Gets the CustCode

      Customer code/customer reference ID.

      Returns:
      custCode String

      Maps to Payflow Parameter: CUSTCODE

    • setCustCode

      public void setCustCode(String custCode)
      Sets the CustCode.

      Customer code/customer reference ID.

      Parameters:
      custCode - String

      Maps to Payflow Parameter: CUSTCODE

    • getCustId

      public String getCustId()
      Gets the Customer's Id.
      Returns:
      custId String

      Maps to Payflow Parameter: CUSTID

    • setCustId

      public void setCustId(String custId)
      Sets the Customer's Id.
      Parameters:
      custId - String

      Maps to Payflow Parameter: CUSTID

    • getCustIP

      public String getCustIP()
      Gets the Customer's IP address.
      Returns:
      custIP String

      Maps to Payflow Parameter: CUSTIP

    • setCustIP

      public void setCustIP(String custIP)
      Sets the Customer's IP address.
      Parameters:
      custIP - String

      Maps to Payflow Parameter: CUSTIP

    • getCustVatRegNum

      public String getCustVatRegNum()
      Gets the Customer's VAT registrations number.
      Returns:
      custVatRegNum String

      Maps to Payflow Parameter: CUSTVATREGNUM

    • setCustVatRegNum

      public void setCustVatRegNum(String custVatRegNum)
      Sets the Customer's VAT registrations number.
      Parameters:
      custVatRegNum - String

      Maps to Payflow Parameter: CUSTVATREGNUM

    • getDob

      public String getDob()
      Gets the dob.

      Account holder's date of birth.

      Format: mmddyyyy.

      mm - Month, dd - Day, yy - Year.

      Returns:
      String

      Maps to Payflow Parameter: DOB

    • setDob

      public void setDob(String dob)
      Sets the dob.

      Account holder's date of birth.

      Format: mmddyyyy.

      mm - Month, dd - Day, yy - Year.

      Parameters:
      dob - String

      Maps to Payflow Parameter: DOB

    • getReqName

      public String getReqName()
      Gets the Requester Name.
      Returns:
      String

      Maps to Payflow Parameter: REQNAME

    • setReqName

      public void setReqName(String reqName)
      Sets the Requester Name.

      Maps to Payflow Parameter: REQNAME

      Parameters:
      reqName - The reqName to set.
    • getCustHostName

      public String getCustHostName()
      Gets the Customer's Host Name.
      Returns:
      String

      Maps to Payflow Parameter: CUSTHOMENAME

    • setCustHostName

      public void setCustHostName(String custHostName)
      Sets the Customer's Host Name.

      Maps to Payflow Parameter: CUSTHOMENAME

      Parameters:
      custHostName - The customer host name to set.
    • getCustBrowser

      public String getCustBrowser()
      Gets the Customer's Browser.
      Returns:
      String

      Maps to Payflow Parameter: CUSTBROWSER

    • setCustBrowser

      public void setCustBrowser(String custBrowser)
      Sets the Customer's Browser.

      Maps to Payflow Parameter: CUSTBROWSER

      Parameters:
      custBrowser - The customers browser.
    • getCustData

      public String getCustData()
      Gets the Customers Data.
      Returns:
      String

      Maps to Payflow Parameter: CUSTDATA

    • setCustData

      public void setCustData(String custData)
      Sets the Customer's Data.

      Maps to Payflow Parameter: CUSTDATA

      Parameters:
      custData - The customers data.
    • getCustomerId

      public String getCustomerId()
      Gets the Customers Id.
      Returns:
      String

      Maps to Payflow Parameter: CUSTOMERID

    • setCustomerId

      public void setCustomerId(String customerId)
      Sets the Customers Id.

      Maps to Payflow Parameter: CUSTOMERID

      Parameters:
      customerId - customers Id.
    • getCustomerNumber

      public String getCustomerNumber()
      Gets the Customers Number.
      Returns:
      String

      Maps to Payflow Parameter: CUSTOMERNUMBER

    • setCustomerNumber

      public void setCustomerNumber(String customerNumber)
      Sets the Customers Number.

      Maps to Payflow Parameter: CUSTOMERNUMBER

      Parameters:
      customerNumber - customers number
    • 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