Class BillTo


public final class BillTo extends Address
Used for Billing Address information

Billing address is Cardholder's address information.

Following example shows how to use BillTo.

................. // inv is the Invoice object. ................. *

// Set the Billing Address details. BillTo bill = new BillTo(); bill.setBillToStreet( "123 Main St."); bill.setBillToZip("12345"); inv.setBillTo (bill); .................

  • Constructor Details

    • BillTo

      public BillTo()
      Constructor.

      Billing address is Cardholder's address information.

  • Method Details

    • getBillToStreet

      public String getBillToStreet()
      Gets the Billing Street.

      Cardholder's billing street address (used for AVS and reporting).

      Returns:
      String

      Maps to Payflow Parameter: BILLTOSTREET

    • setBillToStreet

      public void setBillToStreet(String billToStreet)
      Sets the Billing Street.

      Cardholder's billing street address (used for AVS and reporting).

      Parameters:
      billToStreet - String

      Maps to Payflow Parameter: BILLTOSTREET

    • getBillToStreet2

      public String getBillToStreet2()
      Gets the Billing Street2.

      Cardholder's billing 2nd line street address.

      Returns:
      String

      Maps to Payflow Parameter: BILLTOSTREET2

    • setBillToStreet2

      public void setBillToStreet2(String billToStreet2)
      Sets the Billing Street.

      Cardholder's billing 2nd line street address.

      Parameters:
      billToStreet2 - String

      Maps to Payflow Parameter: BILLTOSTREET2

    • getBillToCity

      public String getBillToCity()
      Gets the city

      Cardholder's billing city.

      Returns:
      String

      Maps to Payflow Parameter: BILLTOCITY

    • setBillToCity

      public void setBillToCity(String billToCity)
      Sets the city

      Cardholder's billing city.

      Parameters:
      billToCity - String

      Maps to Payflow Parameter: BILLTOCITY

    • getBillToState

      public String getBillToState()
      Gets the State

      Cardholder's billing state code.

      Returns:
      String

      Maps to Payflow Parameter: BILLTOSTATE

    • setBillToState

      public void setBillToState(String billToState)
      Sets the State

      Cardholder's billing state code.

      Parameters:
      billToState - String

      Maps to Payflow Parameter: BILLTOSTATE

    • getBillToZip

      public String getBillToZip()
      Gets the Billing Zip.

      Account holder's 5- to 9-digit postal code (called ZIP code in the USA). Do not use spaces, dashes, or non-numeric characters. The postal code is verified by the AVS service.

      Returns:
      String

      Maps to Payflow Parameter: BILLTOZIP

    • setBillToZip

      public void setBillToZip(String billToZip)
      Sets the Billing Zip.

      UAccount holder's 5- to 9-digit postal code (called ZIP code in the USA). Do not use spaces, dashes, or non-numeric characters. The postal code is verified by the AVS service.

      Parameters:
      billToZip - String

      Maps to Payflow Parameter: BILLTOZIP

    • getBillToFirstName

      public String getBillToFirstName()
      Gets the first name.

      Cardholder's first name.

      Returns:
      firstName String

      Maps to Payflow Parameter: BILLTOFIRSTNAME

    • setBillToFirstName

      public void setBillToFirstName(String billToFirstName)
      Sets the first name.

      Cardholder's first name.

      Parameters:
      billToFirstName - String

      Maps to Payflow Parameter: BILLTOFIRSTNAME

    • getBillToMiddleName

      public String getBillToMiddleName()
      Gets the middle name.

      Cardholder's middle name.

      Returns:
      billToMiddleName String

      Maps to Payflow Parameter: BILLTOMIDDLENAME

    • setBillToMiddleName

      public void setBillToMiddleName(String billToMiddleName)
      Sets the middle name.

      Cardholder's middle name.

      Parameters:
      billToMiddleName - String

      Maps to Payflow Parameter: BILLTOMIDDLENAME

    • getBillToLastName

      public String getBillToLastName()
      Gets the last name.

      Cardholder's last name.

      Returns:
      BillToLastName String

      Maps to Payflow Parameter: BILLTOLASTNAME

    • setBillToLastName

      public void setBillToLastName(String billToLastName)
      Sets the last name.

      Cardholder's last name.

      Parameters:
      billToLastName - String

      Maps to Payflow Parameter: BILLTOLASTNAME

    • getBillToPhone

      public String getBillToPhone()
      Gets the billing phone number.

      Cardholder's telephone number.

      Returns:
      billToPhone String

      Maps to Payflow Parameter: PHONENUM

    • setBillToPhone

      public void setBillToPhone(String billToPhone)
      Sets the billing phone number.

      Cardholder's telephone number.

      Parameters:
      billToPhone - String

      Maps to Payflow Parameter: PHONENUM

    • getBillToPhone2

      public String getBillToPhone2()
      Gets the Billing Phone2.

      Cardholder's 2nd telephone number.

      Returns:
      billToPhone2 String

      Maps to Payflow Parameter: BILLTOPHONE2

    • setBillToPhone2

      public void setBillToPhone2(String billToPhone2)
      Sets the Billing Phone2.

      Cardholder's 2nd telephone number.

      Parameters:
      billToPhone2 - String

      Maps to Payflow Parameter: BILLTOPHONE2

    • getBillToFax

      public String getBillToFax()
      Gets the Billing Fax

      Cardholder's fax address.

      Returns:
      fax String

      Maps to Payflow Parameter: BILLTOFAX

    • setBillToFax

      public void setBillToFax(String billToFax)
      Sets the Billing Fax

      Cardholder's fax address.

      Parameters:
      billToFax - String

      Maps to Payflow Parameter: BILLTOFAX

    • getBillToEmail

      public String getBillToEmail()
      Gets the Billing Email.

      Cardholder's e-mail address

      Returns:
      email String

      Maps to Payflow Parameter: BILLTOEMAIL

    • setBillToEmail

      public void setBillToEmail(String billToEmail)
      Sets the Billing Email.

      Cardholder's e-mail address

      Parameters:
      billToEmail - String

      Maps to Payflow Parameter: BILLTOEMAIL

    • getBillToCountry

      public String getBillToCountry()
      Gets the Billing Country.

      Cardholder's billing country code

      Returns:
      billToCountry String

      Maps to Payflow Parameter: BILLTOCOUNTRY

    • setBillToCountry

      public void setBillToCountry(String billToCountry)
      Sets the Billing Country.

      Cardholder's billing country code

      Parameters:
      billToCountry - String

      Maps to Payflow Parameter: BILLTOCOUNTRY

    • getBillToHomePhone

      public String getBillToHomePhone()
      Gets the Billing HomePhone.

      Cardholder's home telephone number.

      Returns:
      homePhone String

      Maps to Payflow Parameter: HOMEPHONE

    • setBillToHomePhone

      public void setBillToHomePhone(String billToHomePhone)
      Sets the Billing HomePhone.

      Cardholder's home telephone number.

      Parameters:
      billToHomePhone - String

      Maps to Payflow Parameter: HOMEPHONE

    • getBillToCompanyName

      public String getBillToCompanyName()
      Gets the Company Name.
      Returns:
      String

      Maps to Payflow Parameter: COMPANYNAME

    • setBillToCompanyName

      public void setBillToCompanyName(String billToCompanyName)
      Sets the Company Name.
      Parameters:
      billToCompanyName - String

      Maps to Payflow Parameter: COMPANYNAME

    • copy

      public ShipTo copy()
      This method copies the common contents from billing to shipping address.

      This method can be used to populate the shipping addresses directly from the billing addresses when both are the same.

      Returns:
      shipTo ShipTo ................ //bill is the object of //billTo populated with //the billing addresses. ................ *

      ShipTo ship; *

      //Populate shipping addresses //from billing addresses. ship = bill.copy(); *

      ................

    • generateRequest

      protected void generateRequest()
    • 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