1
0
Files
PayPal-PHP-Server-SDK/doc/models/customer.md
Patrick Powers 504c367386 Release 0.7.0
Beta Release 0.7.0 including:

- Bug fixes
- Updated model/function names
- Updated models to reflect changes in APIs
2025-03-20 13:18:55 -05:00

1.0 KiB

Customer

This object defines a customer in your system. Use it to manage customer profiles, save payment methods and contact details.

Structure

Customer

Fields

Name Type Tags Description Getter Setter
id ?string Optional The unique ID for a customer generated by PayPal.
Constraints: Minimum Length: 1, Maximum Length: 22, Pattern: ^[0-9a-zA-Z_-]+$
getId(): ?string setId(?string id): void
merchantCustomerId ?string Optional Merchants and partners may already have a data-store where their customer information is persisted. Use merchant_customer_id to associate the PayPal-generated customer.id to your representation of a customer.
Constraints: Minimum Length: 1, Maximum Length: 64, Pattern: ^[0-9a-zA-Z-_.^*$@#]+$
getMerchantCustomerId(): ?string setMerchantCustomerId(?string merchantCustomerId): void

Example (as JSON)

{
  "id": "id8",
  "merchant_customer_id": "merchant_customer_id0"
}