Token
May 27, 2025 ยท View on GitHub
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_-]+$ | String getId() | setId(String id) |
Type | TokenType | Required | The tokenization method that generated the ID. Constraints: Minimum Length: 1, Maximum Length: 255, Pattern: ^[0-9A-Z_-]+$ | TokenType getType() | setType(TokenType type) |
Example (as JSON)
{
"id": "id6",
"type": "BILLING_AGREEMENT"
}