PaymentMethodResponse
PaymentMethod response object. Response-specific fields model API serialization details such as nullable fields and expandable references.
- idType: stringmax length:100required
Unique identifier for the object.
- typeenumconst:cardrequired
The type of the PaymentMethod. An additional hash is included on the PaymentMethod with a name matching this value. It contains additional information specific to the PaymentMethod type.
- cardType: PaymentMethodCardProperties: 15
PaymentMethodCard
- billingType: BillingDetails
_details Properties: 4Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods.
- billingType: Addressnullable
_address requiredProperties: 6Billing address associated with the PaymentMethod, if one exists.
- metadata
Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to
metadata.Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to
metadata.- propertyadditionalPropertyType: string
Name
- customerrequired
ID of an existing Customer, if one exists, or the expanded Customer object when
expand=customeris requested.- Type: Customer IDmax length:100
ID of an existing Customer, if one exists, or the expanded Customer object when
expand=customeris requested.
- usageType: PaymentMethodUsageenumnullable
Context in which this payment method is eligible for future reuse.
values- on
_session The payment method can be reused while the customer is present in the checkout flow.
- off
_session The payment method can be reused when the customer is not actively in the checkout flow.
- on
- reusableType: boolean | null
Whether this payment method is eligible for future reuse.
- livemodeType: booleanrequired
Has the value
trueif the object exists in live mode or the valuefalseif the object exists in test mode. - createdType: stringFormat: date-timerequired
Unix timestamp when refund was created

