#Suren-payment-methods

1 messages · Page 1 of 1 (latest)

livid badge
#

Hello! Did you have a question?

hard lantern
#

hi yes i am here expecting to see a linked list card

#

but I get multiple records by one card ID

livid badge
#

Can you show me what the output looks like?

hard lantern
livid badge
#

Can you give me more specifics - what about this output is not what you expect? We're just returning all the card Payment Methods that are attached to this customer - are there ones listed here that you weren't expecting to be returned?

hard lantern
#

no, it seems to me that there are several results for the same card id

livid badge
#

The same card ID or the same payment method ID?

hard lantern
#

card ID

livid badge
#

Gotcha - so Stripe doesn't do any sort of de-duplication of Payment Methods for the same card number, so it's expected that you could get back multiple Payment Methods with the same number if you're not doing any de-duplication on your end

hard lantern
#

I think I'm doing something wrong
i need to return linked cards list customer

livid badge
#

If you're expecting not to have multiple duplicated payment methods for a customer you need to make sure you're not creating/attaching duplicates by checking if card.fingerprint of the new card is the same as an existing attached payment method

hard lantern
#

that is, the stripe will not do this?

livid badge
#

Correct - we don't do any de-duplication.

hard lantern
#

OK thank you very much