1
0
Files
PayPal-PHP-Server-SDK/doc/models/apple-pay-tokenized-card.md
2025-11-06 20:07:39 +00:00

2.5 KiB

Apple Pay Tokenized Card

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}$
getName(): ?string setName(?string name): void
number ?string Optional The primary account number (PAN) for the payment card.

Constraints: Minimum Length: 13, Maximum Length: 19, Pattern: ^[0-9]{13,19}$
getNumber(): ?string setNumber(?string number): void
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])$
getExpiry(): ?string setExpiry(?string expiry): void
cardType ?string(CardBrand) Optional The card brand or network. Typically used in the response.

Constraints: Minimum Length: 1, Maximum Length: 255, Pattern: ^[A-Z_]+$
getCardType(): ?string setCardType(?string cardType): void
type ?string(CardType) Optional Type of card. i.e Credit, Debit and so on.

Constraints: Minimum Length: 1, Maximum Length: 255, Pattern: ^[A-Z_]+$
getType(): ?string setType(?string type): void
brand ?string(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_]+$
getBrand(): ?string setBrand(?string brand): void
billingAddress ?Address Optional The portable international postal address. Maps to AddressValidationMetadata and HTML 5.1 Autofilling form controls: the autocomplete attribute. getBillingAddress(): ?Address setBillingAddress(?Address billingAddress): void

Example (as JSON)

{
  "name": "name8",
  "number": "number6",
  "expiry": "expiry6",
  "card_type": "SOLO",
  "type": "STORE"
}