Payer Name

August 21, 2026 ยท View on GitHub

The name of the party.

Structure

PayerName

Fields

NameTypeTagsDescriptionGetterSetter
PrefixStringOptionalThe prefix, or title, to the party's name.

Constraints: Maximum Length: 140
String getPrefix()setPrefix(String prefix)
GivenNameStringOptionalWhen the party is a person, the party's given, or first, name.

Constraints: Maximum Length: 140
String getGivenName()setGivenName(String givenName)
SurnameStringOptionalWhen the party is a person, the party's surname or family name. Also known as the last name. Required when the party is a person. Use also to store multiple surnames including the matronymic, or mother's, surname.

Constraints: Maximum Length: 140
String getSurname()setSurname(String surname)
MiddleNameStringOptionalWhen the party is a person, the party's middle name. Use also to store multiple middle names including the patronymic, or father's, middle name.

Constraints: Maximum Length: 140
String getMiddleName()setMiddleName(String middleName)
SuffixStringOptionalThe suffix for the party's name.

Constraints: Maximum Length: 140
String getSuffix()setSuffix(String suffix)
AlternateFullNameStringOptionalDEPRECATED. The party's alternate name. Can be a business name, nickname, or any other name that cannot be split into first, last name. Required when the party is a business.

Constraints: Maximum Length: 300
String getAlternateFullName()setAlternateFullName(String alternateFullName)
FullNameStringOptionalWhen the party is a person, the party's full name.

Constraints: Maximum Length: 300
String getFullName()setFullName(String fullName)

Example

import com.paypal.sdk.models.PayerName;

PayerName payerName = new PayerName.Builder()
    .prefix("prefix8")
    .givenName("given_name2")
    .surname("surname8")
    .middleName("middle_name0")
    .suffix("suffix0")
    .build();