code: import stripe
  stripe.api_key = "sk_test_your_key"
  
  stripe.PaymentMethod.list(
    customer="cus_8TEMHVY5moxIPI",
    type="card",
  )
  '''Response {
    "object": "list",
    "url": "/v1/payment_methods",
    "has_more": false,
    "data": [
      {
        "id": "pm_1LSYy32eZvKYlo2CoClVP3wb",
        "object": "payment_method",
        "billing_details": {
          "address": {
            "city": null,
            "country": null,
            "line1": null,
            "line2": null,
            "postal_code": null,
            "state": null
          },
          "email": null,
          "name": null,
          "phone": null
        },
        "card": {
          "brand": "visa",
          "checks": {
            "address_line1_check": null,
            "address_postal_code_check": null,
            "cvc_check": "unchecked"
          },
          "country": "US",
          "exp_month": 8,
          "exp_year": 2023,
          "fingerprint": "Xt5EWLLDS7FJjR1c",
          "funding": "credit",
          "generated_from": null,
          "last4": "4242",
          "networks": {
            "available": [
              "visa"
            ],
            "preferred": null
          },
          "three_d_secure_usage": {
            "supported": true
          },
          "wallet": null
        },
        "created": 1659500040,
        "customer": null,
        "livemode": false,
        "metadata": {},
        "redaction": null,
        "type": "card"
      },
      {...},
      {...}
    ]
  }'''
nl: List PaymentMethodsReturns a list of PaymentMethods attached to the StripeAccount. For listing a customer’s payment methods, you should use List a Customer’s PaymentMethodsParameters type required A required filter on the list, based on the object type field.Possible enum valuesacss_debit affirm afterpay_clearpay alipay au_becs_debit bacs_debit bancontact Show 20 moreMore parametersExpand all  customer optional   ending_before optional   limit optional   starting_after optional ReturnsA dictionary with a data property that contains an array of up to limit PaymentMethods of type type, starting after PaymentMethods starting_after. Each entry in the array is a separate PaymentMethod object. If no more PaymentMethods are available, the resulting array will be empty. This request should never raise an error