1
0
Files
PayPal-PHP-Server-SDK/doc/models/card-vault-response.md
Dani Kirby 6b43a4225b Beta Release 0.5.0 (#3)
* Automated commit message

* Automated commit message

* Automated commit message

* Automated commit message

---------

Co-authored-by: PayPalServerSDKs <server-sdks@paypal.com>
2024-09-09 12:10:34 -05:00

1.7 KiB

Card Vault Response

The details about a saved Card payment source.

Structure

CardVaultResponse

Fields

Name Type Tags Description Getter Setter
id ?string Optional The PayPal-generated ID for the saved payment source.
Constraints: Minimum Length: 1, Maximum Length: 255
getId(): ?string setId(?string id): void
status ?string(VaultStatus) Optional The vault status.
Constraints: Minimum Length: 1, Maximum Length: 255, Pattern: ^[0-9A-Z_]+$
getStatus(): ?string setStatus(?string status): void
links ?(LinkDescription[]) Optional An array of request-related HATEOAS links.
Constraints: Minimum Items: 1, Maximum Items: 10
getLinks(): ?array setLinks(?array links): void
customer ?CardCustomerInformation Optional The details about a customer in PayPal's system of record. getCustomer(): ?CardCustomerInformation setCustomer(?CardCustomerInformation customer): void

Example (as JSON)

{
  "id": "id6",
  "status": "VAULTED",
  "links": [
    {
      "href": "href6",
      "rel": "rel0",
      "method": "HEAD"
    },
    {
      "href": "href6",
      "rel": "rel0",
      "method": "HEAD"
    }
  ],
  "customer": {
    "id": "id0",
    "email_address": "email_address2",
    "phone": {
      "phone_type": "OTHER",
      "phone_number": {
        "national_number": "national_number6"
      }
    },
    "merchant_customer_id": "merchant_customer_id2"
  }
}