EPCustomer Type
Contains customer information.
Remarks
This type contains information about the customer which the merchant has collected. At the minimum, this should include the customer's name and address. You may also optionally include a merchant-generated customer Id, the customer's Email address, Phone number, and Fax number. This type is used by both the ICharge and ECheck classs.
Example:
EPCustomer cust = new EPCustomer(); cust.FirstName = "John" cust.LastName = "Smith" cust.FullName = "John M. Smith" cust.Address = "123 Nowhere Ln." cust.City = "Beverly Hills" cust.State = "CA" cust.Zip = "90210" cust.Country = "USA" cust.Phone = "555-555-5555" cust.Email = "jsmith@fake.com" cust.Id = "123456" ICharge1.Customer = cust;
Fields
address String |
Customer's street address. This property is used as part of the Address Verification Service (AVS) and contains the customer's street address as it appears on their monthly statement. Only the street number, street name, and apartment number are required in This property. City, state, and zip code are set in the City, State, and Zip properties. The length of this property varies by gateway. If the customer's address is very long, it is admissible to include only the street number in This property. NOTE: For the Moneris gateway, this property should contain only the customer's street number. The street name should be added via the AddSpecialField method. For example: class.CustomerAddress = "123" class.AddSpecialField("avs_street_name", "Nowhere Ln") |
address2 String |
A specific detail on the customer's shipping address (such as building, suite, apartment, floor number etc.). |
aggregate String |
This property allows you to get or set an XML aggregate built from all of the Customer properties.
"EPCustomer" is the root element. The Customer properties make up the tags under the root, but
without the beginning "Customer". For instance:
<EPCustomer> <Address>123 Nowhere Ln.</Address> <Address2>Apt 3B.</Address2> <City>Beverly Hills</City> ... </EPCustomer> |
city String |
Customer's city. This property is used as part of the Address Verification Service (AVS) and contains the customer's city as it appears on their monthly statement. Other AVS properties include Address, State, and Zip.
|
country String |
Customer's country. This property contains the country in which the customer is located. Most gateways use a two-letter country code, specified in ISO-3166. Note: If using this property with the PayFuse gateway, this property should contain the ISO-3166 numeric code instead of the standard two-letter code. For example, the ISO code for the US is "840".
|
email String |
Customer's email address. This optional property contains the customer's email address. |
fax String |
Customer's fax number. This optional property contains the customer's fax number. |
firstName String |
Customer's first name. This property contains the customer's first name. |
fullName String |
Customer's full name. This property contains the customer's full name as it appears on the credit card or bank account. Many gateways use this property in addition to, or instead of, the FirstName and LastName properties. If a gateway requires a FullName and the property is empty, FullName will be constructed using the contents of FirstName and LastName. |
id String |
Merchant-generated customer Id. This property contains a merchant-generated customer identification number. This number should be unique for each different customer that places an order with the merchant. |
lastName String |
Customer's last name. This property contains the customer's last name as it appears on their credit card.
|
phone String |
Customer's phone number. This optional property contains the customer's phone number. |
state String |
Customer's state. This property is used as part of the Address Verification Service (AVS) and contains the two character postal abbreviation of the customer's state as it appears on their monthly statement. Other AVS properties include Address, City, and Zip. |
zip String |
Customer's zip code (or postal code if outside of the USA). This property is used as part of the Address Verification Service (AVS), and contains the customer's zip code as it appears on their monthly statement. Other AVS properties include Address, City, and State.
|
Constructors
public init()