#Suren-payment-methods
1 messages · Page 1 of 1 (latest)
hi yes i am here expecting to see a linked list card
but I get multiple records by one card ID
Can you show me what the output looks like?
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?
no, it seems to me that there are several results for the same card id
The same card ID or the same payment method ID?
card ID
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
I think I'm doing something wrong
i need to return linked cards list customer
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
that is, the stripe will not do this?
Correct - we don't do any de-duplication.
OK thank you very much