1
0
Files
PayPal-PHP-Server-SDK/doc/models/setup-token-response-payment-source.md
2024-10-18 19:06:27 +00:00

2.3 KiB

Setup Token Response Payment Source

The setup payment method details.

Structure

SetupTokenResponsePaymentSource

Fields

Name Type Tags Description Getter Setter
card ?SetupTokenResponseCard Optional - getCard(): ?SetupTokenResponseCard setCard(?SetupTokenResponseCard card): void
paypal ?PaypalPaymentToken Optional - getPaypal(): ?PaypalPaymentToken setPaypal(?PaypalPaymentToken paypal): void
venmo ?VenmoPaymentToken Optional - getVenmo(): ?VenmoPaymentToken setVenmo(?VenmoPaymentToken venmo): void

Example (as JSON)

{
  "card": {
    "name": "name6",
    "last_digits": "last_digits0",
    "brand": "RUPAY",
    "expiry": "expiry4",
    "billing_address": {
      "address_line_1": "address_line_12",
      "address_line_2": "address_line_28",
      "admin_area_2": "admin_area_28",
      "admin_area_1": "admin_area_14",
      "postal_code": "postal_code0",
      "country_code": "country_code8"
    }
  },
  "paypal": {
    "description": "description2",
    "shipping": {
      "name": {
        "full_name": "full_name6"
      },
      "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": "usage_type2",
    "customer_type": "customer_type6"
  },
  "venmo": {
    "description": "description6",
    "shipping": {
      "name": {
        "full_name": "full_name6"
      },
      "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": "usage_type6",
    "customer_type": "customer_type0"
  }
}