Apple Pay Tokenized Card
August 21, 2026 ยท View on GitHub
The payment card to use to fund a payment. Can be a credit or debit card.
Structure
ApplePayTokenizedCard
Fields
| Name | Type | Tags | Description | Getter | Setter |
|---|---|---|---|---|---|
Name | String | Optional | The card holder's name as it appears on the card. Constraints: Minimum Length: 1, Maximum Length: 300, Pattern: ^.{1,300}$ | String getName() | setName(String name) |
Number | String | Optional | The primary account number (PAN) for the payment card. Constraints: Minimum Length: 13, Maximum Length: 19, Pattern: ^[0-9]{13,19}$ | String getNumber() | setNumber(String number) |
Expiry | String | Optional | The year and month, in ISO-8601 YYYY-MM date format. See Internet date and time format.Constraints: Minimum Length: 7, Maximum Length: 7, Pattern: ^[0-9]{4}-(0[1-9]|1[0-2])$ | String getExpiry() | setExpiry(String expiry) |
CardType | CardBrand | Optional, Read-only | The card brand or network. Typically used in the response. Constraints: Minimum Length: 1, Maximum Length: 255, Pattern: ^[A-Z_]+$ | CardBrand getCardType() | setCardType(CardBrand cardType) |
Type | CardType | Optional | Type of card. i.e Credit, Debit and so on. Constraints: Minimum Length: 1, Maximum Length: 255, Pattern: ^[A-Z_]+$ | CardType getType() | setType(CardType type) |
Brand | CardBrand | Optional | The card network or brand. Applies to credit, debit, gift, and payment cards. Constraints: Minimum Length: 1, Maximum Length: 255, Pattern: ^[A-Z_]+$ | CardBrand getBrand() | setBrand(CardBrand brand) |
BillingAddress | Address | Optional | The portable international postal address. Maps to AddressValidationMetadata and HTML 5.1 Autofilling form controls: the autocomplete attribute. | Address getBillingAddress() | setBillingAddress(Address billingAddress) |
Example
import com.paypal.sdk.models.ApplePayTokenizedCard;
import com.paypal.sdk.models.CardType;
ApplePayTokenizedCard applePayTokenizedCard = new ApplePayTokenizedCard.Builder()
.name("name8")
.number("number4")
.expiry("expiry6")
.type(CardType.PREPAID)
.build();