code: import stripe
  stripe.api_key = "sk_test_your_key"
  
  stripe.PaymentMethod.modify(
    "pm_1LSYy32eZvKYlo2CoClVP3wb",
    metadata={"order_id": "6735"},
  )
  '''Response {
    "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": "cus_8TEMHVY5moxIPI",
    "livemode": false,
    "metadata": {
      "order_id": "6735"
    },
    "redaction": null,
    "type": "card"
  }'''
nl: Update a PaymentMethodUpdates a PaymentMethod object. A PaymentMethod must be attached a customer to be updated.Parameters billing_details optional dictionary Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods.Show child parameters metadata optional dictionary 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.More parametersExpand all  card optional dictionary   link optional dictionary   us_bank_account optional dictionary ReturnsReturns a PaymentMethod object