1
0
Files
PayPal-PHP-Server-SDK/doc/models/payment-token-request-payment-source.md
2024-09-06 15:38:17 +05:00

985 B

Payment Token Request Payment Source

The payment method to vault with the instrument details.

Structure

PaymentTokenRequestPaymentSource

Fields

Name Type Tags Description Getter Setter
card ?PaymentTokenRequestCard Optional A Resource representing a request to vault a Card. getCard(): ?PaymentTokenRequestCard setCard(?PaymentTokenRequestCard card): void
token ?VaultTokenRequest Optional The Tokenized Payment Source representing a Request to Vault a Token. getToken(): ?VaultTokenRequest setToken(?VaultTokenRequest token): void

Example (as JSON)

{
  "card": {
    "name": "name6",
    "number": "number6",
    "expiry": "expiry4",
    "security_code": "security_code8",
    "type": "UNKNOWN"
  },
  "token": {
    "id": "id6",
    "type": "BILLING_AGREEMENT"
  }
}