PaymentMethod

  • Type: object

    PaymentMethod objects represent your customer's payment instruments. You can use them with PaymentIntents to collect payments or save them to Customer objects to store instrument details for future payments.

    • created
      Type: stringFormat: date-time
      required

      Unix timestamp when refund was created

    • id
      Type: string
      max length:  
      100
      required

      Unique identifier for the object.

    • livemode
      Type: boolean
      required

      Has the value true if the object exists in live mode or the value false if the object exists in test mode.

    • type
      enum
      const:  
      card
      required

      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.

      values
      • card
    • billing_details
      Type: object · BillingDetails

      Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods.

    • card
      Type: object · PaymentMethodCard

      PaymentMethodCard

    • customer
      Type: string
      max length:  
      100

      ID of an existing Customer, 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.

      • propertyName
        Type: string