Class CustomerInfo
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected ContextGets the Customer's Browser.Gets the CustCodeGets the Customers Data.Gets the Customer's Host Name.Gets the Customer's Id.Gets the Customer's IP address.Gets the Customers Id.Gets the Customers Number.Gets the Customer's VAT registrations number.getDob()Gets the dob.Gets the Requester Name.protected StringBufferGets the Requestbuffer used for creating the actual request string.protected voidsetContext(Context context) voidsetCustBrowser(String custBrowser) Sets the Customer's Browser.voidsetCustCode(String custCode) Sets the CustCode.voidsetCustData(String custData) Sets the Customer's Data.voidsetCustHostName(String custHostName) Sets the Customer's Host Name.voidSets the Customer's Id.voidSets the Customer's IP address.voidsetCustomerId(String customerId) Sets the Customers Id.voidsetCustomerNumber(String customerNumber) Sets the Customers Number.voidsetCustVatRegNum(String custVatRegNum) Sets the Customer's VAT registrations number.voidSets the dob.voidsetReqName(String reqName) Sets the Requester Name.protected voidsetRequestBuffer(StringBuffer value) sets the StringBuffer to hold the request string.
-
Constructor Details
-
CustomerInfo
public CustomerInfo()ConstructorUse this class to set the customer related information.
-
-
Method Details
-
generateRequest
protected void generateRequest() -
getCustCode
Gets the CustCodeCustomer code/customer reference ID.
- Returns:
- custCode String
Maps to Payflow Parameter: CUSTCODE
-
setCustCode
Sets the CustCode.Customer code/customer reference ID.
- Parameters:
custCode- StringMaps to Payflow Parameter: CUSTCODE
-
getCustId
Gets the Customer's Id.- Returns:
- custId String
Maps to Payflow Parameter: CUSTID
-
setCustId
Sets the Customer's Id.- Parameters:
custId- StringMaps to Payflow Parameter: CUSTID
-
getCustIP
Gets the Customer's IP address.- Returns:
- custIP String
Maps to Payflow Parameter: CUSTIP
-
setCustIP
Sets the Customer's IP address.- Parameters:
custIP- StringMaps to Payflow Parameter: CUSTIP
-
getCustVatRegNum
Gets the Customer's VAT registrations number.- Returns:
- custVatRegNum String
Maps to Payflow Parameter: CUSTVATREGNUM
-
setCustVatRegNum
Sets the Customer's VAT registrations number.- Parameters:
custVatRegNum- StringMaps to Payflow Parameter: CUSTVATREGNUM
-
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
Sets the dob.Account holder's date of birth.
Format: mmddyyyy.
mm - Month, dd - Day, yy - Year.
- Parameters:
dob- StringMaps to Payflow Parameter: DOB
-
getReqName
Gets the Requester Name.- Returns:
- String
Maps to Payflow Parameter: REQNAME
-
setReqName
Sets the Requester Name.Maps to Payflow Parameter: REQNAME
- Parameters:
reqName- The reqName to set.
-
getCustHostName
Gets the Customer's Host Name.- Returns:
- String
Maps to Payflow Parameter: CUSTHOMENAME
-
setCustHostName
Sets the Customer's Host Name.Maps to Payflow Parameter: CUSTHOMENAME
- Parameters:
custHostName- The customer host name to set.
-
getCustBrowser
Gets the Customer's Browser.- Returns:
- String
Maps to Payflow Parameter: CUSTBROWSER
-
setCustBrowser
Sets the Customer's Browser.Maps to Payflow Parameter: CUSTBROWSER
- Parameters:
custBrowser- The customers browser.
-
getCustData
Gets the Customers Data.- Returns:
- String
Maps to Payflow Parameter: CUSTDATA
-
setCustData
Sets the Customer's Data.Maps to Payflow Parameter: CUSTDATA
- Parameters:
custData- The customers data.
-
getCustomerId
Gets the Customers Id.- Returns:
- String
Maps to Payflow Parameter: CUSTOMERID
-
setCustomerId
Sets the Customers Id.Maps to Payflow Parameter: CUSTOMERID
- Parameters:
customerId- customers Id.
-
getCustomerNumber
Gets the Customers Number.- Returns:
- String
Maps to Payflow Parameter: CUSTOMERNUMBER
-
setCustomerNumber
Sets the Customers Number.Maps to Payflow Parameter: CUSTOMERNUMBER
- Parameters:
customerNumber- customers number
-
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
-