1
0
Files
PayPal-PHP-Server-SDK/doc/models/card-response-with-billing-address.md
Patrick Powers 1fc2cf1e07 2.0.0 Release (#58)
* Automated commit message

* Automated commit message

* add changelog

---------

Co-authored-by: PayPalServerSDKs <server-sdks@paypal.com>
2025-11-13 16:32:53 -06:00

1.9 KiB

Card Response With Billing Address

The payment card used to fund the payment. Card can be a credit or debit card.

Structure

CardResponseWithBillingAddress

Fields

Name Type Tags Description Getter Setter
name ?string Optional The card holder's name as it appears on the card.

Constraints: Minimum Length: 2, Maximum Length: 300
getName(): ?string setName(?string name): void
billingAddress ?Address Optional The portable international postal address. Maps to AddressValidationMetadata and HTML 5.1 Autofilling form controls: the autocomplete attribute. getBillingAddress(): ?Address setBillingAddress(?Address billingAddress): void
expiry ?string Optional The year and month, in ISO-8601 YYYY-MM date format. See Internet date and time format.

Constraints: Minimum Length: 7, Maximum Length: 7, Pattern: ^[0-9]{4}-(0[1-9]|1[0-2])$
getExpiry(): ?string setExpiry(?string expiry): void
currencyCode ?string Optional The three-character ISO-4217 currency code that identifies the currency.

Constraints: Minimum Length: 3, Maximum Length: 3
getCurrencyCode(): ?string setCurrencyCode(?string currencyCode): void

Example (as JSON)

{
  "name": "name0",
  "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"
  },
  "expiry": "expiry8",
  "currency_code": "currency_code4"
}