forked from LiveCarta/PayPal-PHP-Server-SDK
* Automated commit message * Automated commit message * Automated commit message * Automated commit message --------- Co-authored-by: PayPalServerSDKs <server-sdks@paypal.com>
756 B
756 B
Token
The tokenized payment source to fund a payment.
Structure
Token
Fields
| Name | Type | Tags | Description | Getter | Setter |
|---|---|---|---|---|---|
id |
string |
Required | The PayPal-generated ID for the token. Constraints: Minimum Length: 1, Maximum Length: 255, Pattern: ^[0-9a-zA-Z_-]+$ |
getId(): string | setId(string id): void |
type |
string(TokenType) |
Required | The tokenization method that generated the ID. Constraints: Minimum Length: 1, Maximum Length: 255, Pattern: ^[0-9A-Z_-]+$ |
getType(): string | setType(string type): void |
Example (as JSON)
{
"id": "id6",
"type": "BILLING_AGREEMENT"
}