stripe / stripe-node

Node.js library for the Stripe API.
https://stripe.com
MIT License
3.74k stars 729 forks source link

display_brand type missing in PaymentMethods.Card #2013

Open BitWonka opened 5 months ago

BitWonka commented 5 months ago

Describe the bug

display_brand type is missing in the PaymentMethods.Card but it is sent by the api

display_brand: {
        label = "Visa"
        logo_url = "https://b.stripecdn.com/cards-metadata/logos/card-visa.svg"
        type = "visa"
}

To Reproduce

retrieve the payment for a card stripe.paymentMethods.retrieve(<Payment Method Id>);

display_brand are inside the card object but display_brand are not on the type

Expected behavior

display_brand should be on the card

Code snippets

No response

OS

macOS

Node version

Node v20.6.1

Library version

stripe-node v14.14.0

API version

2023-10-16

Additional context

No response

richardm-stripe commented 5 months ago

Hello @BitWonka. Thanks for reporting this. This field is part of new functionality that hasn't been fully released. Please don't rely on this field just yet.

BitWonka commented 5 months ago

looks like it just got removed from the API response 🥹