Class MerchantInfo

java.lang.Object
paypal.payflow.MerchantInfo

public final class MerchantInfo extends Object
Used for Merchant related information.

Use this class to set the customer related information.

................. // inv is the Invoice object ................. // Set the Merchant Info details. MerchantInfo Merchant = New MerchantInfo(); Merchant.MerchantCode = "MerchantXXXXX"; Merchant.MerchantCity = "Anywhere"; Inv.MerchantInfo = Merchant; .................
  • Constructor Details

    • MerchantInfo

      public MerchantInfo()
      Constructor

      Use this class to set the Merchant related information. Used for Soft Descriptor.

  • Method Details

    • generateRequest

      protected void generateRequest()
    • getMerchantName

      public String getMerchantName()
      Gets the Merchant's Name.
      Returns:
      merchantName String

      Maps to Payflow Parameter: MERCHANTNAME

    • setMerchantName

      public void setMerchantName(String merchantName)
      Sets the Merchant's Name.

      Merchant/Business Name

      Parameters:
      merchantName - String

      Maps to Payflow Parameter: MERCHANTNAME

    • getmerchantStreet

      public String getmerchantStreet()
      Gets the Merchant's Street.
      Returns:
      merchantStreet String

      Maps to Payflow Parameter: MERCHANTSTREET

    • setMerchantStreet

      public void setMerchantStreet(String merchantStreet)
      Sets the Merchant's Street.
      Parameters:
      merchantStreet - String

      Maps to Payflow Parameter: MERCHANTSTREET

    • getMerchantCity

      public String getMerchantCity()
      Gets the Merchant's City.
      Returns:
      merchantCity String

      Maps to Payflow Parameter: MERCHANTCITY

    • setMerchantCity

      public void setMerchantCity(String merchantCity)
      Sets the Merchant's City.
      Parameters:
      merchantCity - String

      Maps to Payflow Parameter: MERCHANTCITY

    • getMerchantState

      public String getMerchantState()
      Gets the Merchant's State.
      Returns:
      merchantState String

      Maps to Payflow Parameter: MERCHANTSTATE

    • setMerchantState

      public void setMerchantState(String merchantState)
      Sets the Merchant's State.
      Parameters:
      merchantState - String

      Maps to Payflow Parameter: MERCHANTSTATE

    • getMerchantZip

      public String getMerchantZip()
      Gets the Merchant's Zip.
      Returns:
      merchantZip String

      Maps to Payflow Parameter: MERCHANTZIP

    • setMerchantZip

      public void setMerchantZip(String merchantZip)
      Sets the Merchant's Zip.
      Parameters:
      merchantZip - String

      Maps to Payflow Parameter: MERCHANTZIP

    • getMerchantCountryCode

      public String getMerchantCountryCode()
      Gets the Merchant Country Code.
      Returns:
      merchantCountyCode String

      Maps to Payflow Parameter: MERCHANTCOUNTRYCODE

    • setMerchantCountryCode

      public void setMerchantCountryCode(String merchantCountryCode)
      Sets the Merchant Country Code.
      Parameters:
      merchantCountryCode - String

      Maps to Payflow Parameter: MERCHANTCOUNTRYCODE

    • getMerchantUrl

      public String getMerchantUrl()
      Gets the Merchant Url.
      Returns:
      merchantUrl String

      Maps to Payflow Parameter: MERCHANTURL

    • setMerchantUrl

      public void setMerchantUrl(String merchantUrl)
      Sets the Merchant Url.
      Parameters:
      merchantUrl - String

      Maps to Payflow Parameter: MERCHANTURL

    • getMerchantVatNum

      public String getMerchantVatNum()
      Gets the Merchant VAT number.
      Returns:
      merchantVatNum String

      Maps to Payflow Parameter: MERCHANTVATNUM

    • setMerchantVatNum

      public void setMerchantVatNum(String merchantVatNum)
      Sets the Merchant VAT number.
      Parameters:
      merchantVatNum - String

      Maps to Payflow Parameter: MERCHANTVATNUM

    • getMerchantInvoiceNum

      public String getMerchantInvoiceNum()
      Gets the Merchant Invoice number.
      Returns:
      merchantInvoiceNum String

      Maps to Payflow Parameter: MERCHANTINVOICENUM

    • setMerchantInvoiceNum

      public void setMerchantInvoiceNum(String merchantInvoiceNum)
      Sets the Merchant Invoice number.
      Parameters:
      merchantInvoiceNum - String

      Maps to Payflow Parameter: MERCHANTINVOICENUM

    • getMerchantLocationId

      public String getMerchantLocationId()
      Gets the Merchant Location Id. Merchant assigned store or location number.
      Returns:
      - String

      Maps to Payflow Parameter: MERCHANTLOCATIONID

    • setMerchantLocationId

      public void setMerchantLocationId(String merchantLocationId)
      Sets the Merchant Location Id.
      Parameters:
      merchantLocationId - String

      Maps to Payflow Parameter: MERCHANTLOCATIONID

    • getMerchantId

      public String getMerchantId()
      Gets the Merchant Id. Processor assigned Id.
      Returns:
      - String

      Maps to Payflow Parameter: MERCHANTID

    • setMerchantId

      public void setMerchantId(String merchantId)
      Sets the Merchant Id.
      Parameters:
      merchantId - String

      Maps to Payflow Parameter: MERCHANTID

    • getMerchantContactInfo

      public String getMerchantContactInfo()
      Gets the Merchant Contact Information. Merchants telephone, URl or email.
      Returns:
      - String

      Maps to Payflow Parameter: MERCHANTCONTACTINFO

    • setMerchantContactInfoId

      public void setMerchantContactInfoId(String merchantContactInfo)
      Sets the Merchant Contact Information.
      Parameters:
      merchantContactInfo - String

      Maps to Payflow Parameter: MERCHANTCONTANCTINFO

    • getMerchDescr

      public String getMerchDescr()
      Gets the Merchant's description.
      Returns:
      merchDescr String

      Maps to Payflow Parameter: MERCHDESCR

    • setMerchDescr

      public void setMerchDescr(String merchDescr)
      Sets the Merchant's description.
      Parameters:
      merchDescr - String

      Maps to Payflow Parameter: MERCHDESCR

    • getMerchSvc

      public String getMerchSvc()
      Gets the Merchant's contact information.
      Returns:
      merchSvc String

      Maps to Payflow Parameter: MERCHSVC

    • setMerchSvc

      public void setMerchSvc(String merchSvc)
      Sets the Merchant's contact information.
      Parameters:
      merchSvc - String

      Maps to Payflow Parameter: MERCHSVC

    • 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