Class Paypal
- java.lang.Object
 - 
- com.broadleafcommerce.paypal.micro.gateway.domain.orders.Paypal
 
 
- 
- All Implemented Interfaces:
 Serializable
public class Paypal extends Object implements Serializable
- Author:
 - Dima Myroniuk (dmyroniuk)
 - See Also:
 - Serialized Form
 
 
- 
- 
Constructor Summary
Constructors Constructor Description Paypal() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PaypalemailAddress(String emailAddress)PaypalexperienceContext(ExperienceContext experienceContext)StringgetAccountId()The PayPal-assigned ID for the PayPal account holder.AddressPortablegetAddress()The address of the PayPal account holder.StringgetBirthDate()The birth date of the PayPal account holder in "YYYY-MM-DD" format.StringgetEmailAddress()The email address of the PayPal account holder.ExperienceContextgetExperienceContext()Customizes the payer experience during the approval process for the payment.NamegetName()The name of the PayPal account holder.PhonegetPhoneNumber()The phone number, in its canonical international E.164 numbering plan format.StringgetPhoneType()The phone type.TaxInfogetTaxInfo()The tax information of the PayPal account holder.voidsetAccountId(String accountId)The PayPal-assigned ID for the PayPal account holder.voidsetAddress(AddressPortable address)The address of the PayPal account holder.voidsetBirthDate(String birthDate)The birth date of the PayPal account holder in "YYYY-MM-DD" format.voidsetEmailAddress(String emailAddress)The email address of the PayPal account holder.voidsetExperienceContext(ExperienceContext experienceContext)Customizes the payer experience during the approval process for the payment.voidsetName(Name name)The name of the PayPal account holder.voidsetPhoneNumber(Phone phoneNumber)The phone number, in its canonical international E.164 numbering plan format.voidsetPhoneType(String phoneType)The phone type.voidsetTaxInfo(TaxInfo taxInfo)The tax information of the PayPal account holder. 
 - 
 
- 
- 
Method Detail
- 
experienceContext
public Paypal experienceContext(ExperienceContext experienceContext)
 
- 
setAccountId
public void setAccountId(String accountId)
The PayPal-assigned ID for the PayPal account holder. 
- 
setAddress
public void setAddress(AddressPortable address)
The address of the PayPal account holder. Supports only the "address_line_1", "address_line_2", "admin_area_1", "admin_area_2", "postal_code", and "country_code" properties. Also referred to as the billing address of the customer. 
- 
setBirthDate
public void setBirthDate(String birthDate)
The birth date of the PayPal account holder in "YYYY-MM-DD" format. 
- 
setEmailAddress
public void setEmailAddress(String emailAddress)
The email address of the PayPal account holder. 
- 
setName
public void setName(Name name)
The name of the PayPal account holder. Supports only the "given_name" and "surname" properties. 
- 
setPhoneNumber
public void setPhoneNumber(Phone phoneNumber)
The phone number, in its canonical international E.164 numbering plan format. Available only when you enable the Contact Telephone Number option in the Profile & Settings for the merchant's PayPal account. Supports only the "national_number" property. 
- 
setPhoneType
public void setPhoneType(String phoneType)
The phone type. The possible values are:- FAX. A fax machine.
 - HOME. A home phone.
 - MOBILE. A mobile phone.
 - OTHER. Other.
 - PAGER. A pager.
 - WORK. A work phone.
 
 
- 
setExperienceContext
public void setExperienceContext(ExperienceContext experienceContext)
Customizes the payer experience during the approval process for the payment. 
- 
setTaxInfo
public void setTaxInfo(TaxInfo taxInfo)
The tax information of the PayPal account holder. Required only for Brazilian PayPal account holder's. Both tax_id and tax_id_type are required. 
- 
getAccountId
public String getAccountId()
The PayPal-assigned ID for the PayPal account holder. 
- 
getAddress
public AddressPortable getAddress()
The address of the PayPal account holder. Supports only the "address_line_1", "address_line_2", "admin_area_1", "admin_area_2", "postal_code", and "country_code" properties. Also referred to as the billing address of the customer. 
- 
getBirthDate
public String getBirthDate()
The birth date of the PayPal account holder in "YYYY-MM-DD" format. 
- 
getEmailAddress
public String getEmailAddress()
The email address of the PayPal account holder. 
- 
getName
public Name getName()
The name of the PayPal account holder. Supports only the "given_name" and "surname" properties. 
- 
getPhoneNumber
public Phone getPhoneNumber()
The phone number, in its canonical international E.164 numbering plan format. Available only when you enable the Contact Telephone Number option in the Profile & Settings for the merchant's PayPal account. Supports only the "national_number" property. 
- 
getPhoneType
public String getPhoneType()
The phone type. The possible values are:- FAX. A fax machine.
 - HOME. A home phone.
 - MOBILE. A mobile phone.
 - OTHER. Other.
 - PAGER. A pager.
 - WORK. A work phone.
 
 
- 
getExperienceContext
public ExperienceContext getExperienceContext()
Customizes the payer experience during the approval process for the payment. 
- 
getTaxInfo
public TaxInfo getTaxInfo()
The tax information of the PayPal account holder. Required only for Brazilian PayPal account holder's. Both tax_id and tax_id_type are required. 
 - 
 
 -