1
0
Files
PayPal-PHP-Server-SDK/doc/models/vaulted-digital-wallet.md
Dani Kirby 6b43a4225b Beta Release 0.5.0 (#3)
* Automated commit message

* Automated commit message

* Automated commit message

* Automated commit message

---------

Co-authored-by: PayPalServerSDKs <server-sdks@paypal.com>
2024-09-09 12:10:34 -05:00

2.8 KiB

Vaulted Digital Wallet

Resource consolidating common request and response attributes for vaulting a Digital Wallet.

Structure

VaultedDigitalWallet

Fields

Name Type Tags Description Getter Setter
description ?string Optional The description displayed to the consumer on the approval flow for a digital wallet, as well as on the merchant view of the payment token management experience. exp: PayPal.com.
Constraints: Minimum Length: 1, Maximum Length: 128, Pattern: ^.*$
getDescription(): ?string setDescription(?string description): void
shipping ?VaultedDigitalWalletShippingDetails Optional The shipping details. getShipping(): ?VaultedDigitalWalletShippingDetails setShipping(?VaultedDigitalWalletShippingDetails shipping): void
permitMultiplePaymentTokens ?bool Optional Create multiple payment tokens for the same payer, merchant/platform combination. Use this when the customer has not logged in at merchant/platform. The payment token thus generated, can then also be used to create the customer account at merchant/platform. Use this also when multiple payment tokens are required for the same payer, different customer at merchant/platform. This helps to identify customers distinctly even though they may share the same PayPal account. This only applies to PayPal payment source.
Default: false
getPermitMultiplePaymentTokens(): ?bool setPermitMultiplePaymentTokens(?bool permitMultiplePaymentTokens): void
usageType ?string Optional The usage type associated with a digital wallet payment token.
Constraints: Minimum Length: 1, Maximum Length: 255, Pattern: ^[0-9A-Z_]+$
getUsageType(): ?string setUsageType(?string usageType): void
customerType ?string Optional The customer type associated with a digital wallet payment token. This is to indicate whether the customer acting on the merchant / platform is either a business or a consumer.
Constraints: Minimum Length: 1, Maximum Length: 255, Pattern: ^[0-9A-Z_]+$
getCustomerType(): ?string setCustomerType(?string customerType): void

Example (as JSON)

{
  "permit_multiple_payment_tokens": false,
  "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"
    }
  },
  "usage_type": "usage_type2",
  "customer_type": "customer_type6"
}