1
0
Files
PayPal-PHP-Server-SDK/doc/models/apple-pay-card.md
Patrick Powers 6da8b9b5b8 1.1.0 Release (#44)
* Automated commit message

* add changelog

---------

Co-authored-by: PayPalServerSDKs <server-sdks@paypal.com>
Co-authored-by: Patrick Powers <patickpowers@hey.com>
2025-05-27 13:31:17 -05:00

2.1 KiB

Apple Pay Card

The payment card to be used to fund a payment. Can be a credit or debit card.

Structure

ApplePayCard

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
lastDigits ?string Optional The last digits of the payment card.

Constraints: Minimum Length: 2, Maximum Length: 4, Pattern: ^[0-9]{2,4}$
getLastDigits(): ?string setLastDigits(?string lastDigits): 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": "name4",
  "last_digits": "last_digits8",
  "type": "UNKNOWN",
  "brand": "AMEX",
  "billing_address": {
    "address_line_1": "address_line_12",
    "address_line_2": "address_line_28",
    "admin_area_2": "admin_area_28",
    "admin_area_1": "admin_area_14",
    "postal_code": "postal_code0",
    "country_code": "country_code8"
  }
}