1
0
Files
PayPal-PHP-Server-SDK/doc/models/setup-token-request-payment-source.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

2.7 KiB

Setup Token Request Payment Source

The payment method to vault with the instrument details.

Structure

SetupTokenRequestPaymentSource

Fields

Name Type Tags Description Getter Setter
card ?SetupTokenRequestCard Optional A Resource representing a request to vault a Card. getCard(): ?SetupTokenRequestCard setCard(?SetupTokenRequestCard card): void
paypal ?VaultPaypalWalletRequest Optional A resource representing a request to vault PayPal Wallet. getPaypal(): ?VaultPaypalWalletRequest setPaypal(?VaultPaypalWalletRequest paypal): void
venmo ?VaultVenmoRequest Optional - getVenmo(): ?VaultVenmoRequest setVenmo(?VaultVenmoRequest venmo): 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",
    "brand": "RUPAY"
  },
  "paypal": {
    "description": "description2",
    "usage_pattern": "THRESHOLD_PREPAID",
    "shipping": {
      "name": {
        "full_name": "full_name6"
      },
      "phone_number": {
        "country_code": "country_code2",
        "national_number": "national_number6"
      },
      "type": "SHIPPING",
      "address": {
        "address_line_1": "address_line_16",
        "address_line_2": "address_line_26",
        "admin_area_2": "admin_area_20",
        "admin_area_1": "admin_area_12",
        "postal_code": "postal_code8",
        "country_code": "country_code6"
      }
    },
    "permit_multiple_payment_tokens": false,
    "usage_type": "MERCHANT"
  },
  "venmo": {
    "description": "description6",
    "usage_pattern": "UNSCHEDULED_PREPAID",
    "shipping": {
      "name": {
        "full_name": "full_name6"
      },
      "phone_number": {
        "country_code": "country_code2",
        "national_number": "national_number6"
      },
      "type": "SHIPPING",
      "address": {
        "address_line_1": "address_line_16",
        "address_line_2": "address_line_26",
        "admin_area_2": "admin_area_20",
        "admin_area_1": "admin_area_12",
        "postal_code": "postal_code8",
        "country_code": "country_code6"
      }
    },
    "permit_multiple_payment_tokens": false,
    "usage_type": "MERCHANT"
  },
  "token": {
    "id": "id6",
    "type": "SETUP_TOKEN"
  }
}