Google Pay Wallet Response

August 21, 2026 ยท View on GitHub

Google Pay Wallet payment data.

Structure

GooglePayWalletResponse

Fields

NameTypeTagsDescriptionGetterSetter
NameStringOptionalThe full name representation like Mr J Smith.

Constraints: Minimum Length: 3, Maximum Length: 300
String getName()setName(String name)
EmailAddressStringOptionalThe internationalized email address. Note: Up to 64 characters are allowed before and 255 characters are allowed after the @ sign. However, the generally accepted maximum length for an email address is 254 characters. The pattern verifies that an unquoted @ sign exists.

Constraints: Minimum Length: 3, Maximum Length: 254, Pattern: ^(?:[A-Za-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[A-Za-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[A-Za-z0-9](?:[A-Za-z0-9-]*[A-Za-z0-9])?\.)+[A-Za-z0-9](?:[A-Za-z0-9-]*[A-Za-z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[A-Za-z0-9-]*[A-Za-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])$
String getEmailAddress()setEmailAddress(String emailAddress)
PhoneNumberPhoneNumberWithCountryCodeOptionalThe phone number in its canonical international E.164 numbering plan format.PhoneNumberWithCountryCode getPhoneNumber()setPhoneNumber(PhoneNumberWithCountryCode phoneNumber)
CardGooglePayCardResponseOptionalThe payment card to use to fund a Google Pay payment response. Can be a credit or debit card.GooglePayCardResponse getCard()setCard(GooglePayCardResponse card)

Example

import com.paypal.sdk.models.Address;
import com.paypal.sdk.models.CardBrand;
import com.paypal.sdk.models.CardType;
import com.paypal.sdk.models.GooglePayCardResponse;
import com.paypal.sdk.models.GooglePayWalletResponse;
import com.paypal.sdk.models.PhoneNumberWithCountryCode;

GooglePayWalletResponse googlePayWalletResponse = new GooglePayWalletResponse.Builder()
    .name("name0")
    .emailAddress("email_address8")
    .phoneNumber(new PhoneNumberWithCountryCode.Builder(
        "country_code2",
        "national_number6"
    )
    .build())
    .card(new GooglePayCardResponse.Builder()
        .name("name6")
        .type(CardType.UNKNOWN)
        .brand(CardBrand.CB_NATIONALE)
        .billingAddress(new Address.Builder(
            "country_code8"
        )
        .addressLine1("address_line_12")
        .addressLine2("address_line_28")
        .adminArea2("admin_area_28")
        .adminArea1("admin_area_14")
        .postalCode("postal_code0")
        .build())
        .build())
    .build();