stripe-node icon indicating copy to clipboard operation
stripe-node copied to clipboard

display_brand type missing in PaymentMethods.Card

Open BitWonka opened this issue 1 year ago • 2 comments
trafficstars

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

BitWonka avatar Feb 01 '24 23:02 BitWonka

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.

richardm-stripe avatar Feb 02 '24 00:02 richardm-stripe

looks like it just got removed from the API response 🥹

BitWonka avatar Feb 02 '24 01:02 BitWonka