Class MerchantInfo
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected ContextGets the Merchant's City.Gets the Merchant Contact Information.Gets the Merchant Country Code.Gets the Merchant Id.Gets the Merchant Invoice number.Gets the Merchant Location Id.Gets the Merchant's Name.Gets the Merchant's State.Gets the Merchant's Street.Gets the Merchant Url.Gets the Merchant VAT number.Gets the Merchant's Zip.Gets the Merchant's description.Gets the Merchant's contact information.protected StringBufferGets the Requestbuffer used for creating the actual request string.protected voidsetContext(Context context) voidsetMerchantCity(String merchantCity) Sets the Merchant's City.voidsetMerchantContactInfoId(String merchantContactInfo) Sets the Merchant Contact Information.voidsetMerchantCountryCode(String merchantCountryCode) Sets the Merchant Country Code.voidsetMerchantId(String merchantId) Sets the Merchant Id.voidsetMerchantInvoiceNum(String merchantInvoiceNum) Sets the Merchant Invoice number.voidsetMerchantLocationId(String merchantLocationId) Sets the Merchant Location Id.voidsetMerchantName(String merchantName) Sets the Merchant's Name.voidsetMerchantState(String merchantState) Sets the Merchant's State.voidsetMerchantStreet(String merchantStreet) Sets the Merchant's Street.voidsetMerchantUrl(String merchantUrl) Sets the Merchant Url.voidsetMerchantVatNum(String merchantVatNum) Sets the Merchant VAT number.voidsetMerchantZip(String merchantZip) Sets the Merchant's Zip.voidsetMerchDescr(String merchDescr) Sets the Merchant's description.voidsetMerchSvc(String merchSvc) Sets the Merchant's contact information.protected voidsetRequestBuffer(StringBuffer value) sets the StringBuffer to hold the request string.
-
Constructor Details
-
MerchantInfo
public MerchantInfo()ConstructorUse this class to set the Merchant related information. Used for Soft Descriptor.
-
-
Method Details
-
generateRequest
protected void generateRequest() -
getMerchantName
Gets the Merchant's Name.- Returns:
- merchantName String
Maps to Payflow Parameter: MERCHANTNAME
-
setMerchantName
Sets the Merchant's Name.Merchant/Business Name
- Parameters:
merchantName- StringMaps to Payflow Parameter: MERCHANTNAME
-
getmerchantStreet
Gets the Merchant's Street.- Returns:
- merchantStreet String
Maps to Payflow Parameter: MERCHANTSTREET
-
setMerchantStreet
Sets the Merchant's Street.- Parameters:
merchantStreet- StringMaps to Payflow Parameter: MERCHANTSTREET
-
getMerchantCity
Gets the Merchant's City.- Returns:
- merchantCity String
Maps to Payflow Parameter: MERCHANTCITY
-
setMerchantCity
Sets the Merchant's City.- Parameters:
merchantCity- StringMaps to Payflow Parameter: MERCHANTCITY
-
getMerchantState
Gets the Merchant's State.- Returns:
- merchantState String
Maps to Payflow Parameter: MERCHANTSTATE
-
setMerchantState
Sets the Merchant's State.- Parameters:
merchantState- StringMaps to Payflow Parameter: MERCHANTSTATE
-
getMerchantZip
Gets the Merchant's Zip.- Returns:
- merchantZip String
Maps to Payflow Parameter: MERCHANTZIP
-
setMerchantZip
Sets the Merchant's Zip.- Parameters:
merchantZip- StringMaps to Payflow Parameter: MERCHANTZIP
-
getMerchantCountryCode
Gets the Merchant Country Code.- Returns:
- merchantCountyCode String
Maps to Payflow Parameter: MERCHANTCOUNTRYCODE
-
setMerchantCountryCode
Sets the Merchant Country Code.- Parameters:
merchantCountryCode- StringMaps to Payflow Parameter: MERCHANTCOUNTRYCODE
-
getMerchantUrl
Gets the Merchant Url.- Returns:
- merchantUrl String
Maps to Payflow Parameter: MERCHANTURL
-
setMerchantUrl
Sets the Merchant Url.- Parameters:
merchantUrl- StringMaps to Payflow Parameter: MERCHANTURL
-
getMerchantVatNum
Gets the Merchant VAT number.- Returns:
- merchantVatNum String
Maps to Payflow Parameter: MERCHANTVATNUM
-
setMerchantVatNum
Sets the Merchant VAT number.- Parameters:
merchantVatNum- StringMaps to Payflow Parameter: MERCHANTVATNUM
-
getMerchantInvoiceNum
Gets the Merchant Invoice number.- Returns:
- merchantInvoiceNum String
Maps to Payflow Parameter: MERCHANTINVOICENUM
-
setMerchantInvoiceNum
Sets the Merchant Invoice number.- Parameters:
merchantInvoiceNum- StringMaps to Payflow Parameter: MERCHANTINVOICENUM
-
getMerchantLocationId
Gets the Merchant Location Id. Merchant assigned store or location number.- Returns:
- - String
Maps to Payflow Parameter: MERCHANTLOCATIONID
-
setMerchantLocationId
Sets the Merchant Location Id.- Parameters:
merchantLocationId- StringMaps to Payflow Parameter: MERCHANTLOCATIONID
-
getMerchantId
Gets the Merchant Id. Processor assigned Id.- Returns:
- - String
Maps to Payflow Parameter: MERCHANTID
-
setMerchantId
Sets the Merchant Id.- Parameters:
merchantId- StringMaps to Payflow Parameter: MERCHANTID
-
getMerchantContactInfo
Gets the Merchant Contact Information. Merchants telephone, URl or email.- Returns:
- - String
Maps to Payflow Parameter: MERCHANTCONTACTINFO
-
setMerchantContactInfoId
Sets the Merchant Contact Information.- Parameters:
merchantContactInfo- StringMaps to Payflow Parameter: MERCHANTCONTANCTINFO
-
getMerchDescr
Gets the Merchant's description.- Returns:
- merchDescr String
Maps to Payflow Parameter: MERCHDESCR
-
setMerchDescr
Sets the Merchant's description.- Parameters:
merchDescr- StringMaps to Payflow Parameter: MERCHDESCR
-
getMerchSvc
Gets the Merchant's contact information.- Returns:
- merchSvc String
Maps to Payflow Parameter: MERCHSVC
-
setMerchSvc
Sets the Merchant's contact information.- Parameters:
merchSvc- StringMaps to Payflow Parameter: MERCHSVC
-
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
-