#Jkas
1 messages ยท Page 1 of 1 (latest)
Pasting the customer ID here: cus_GcI1W2foIqlXD7
Thank you!
https://dashboard.stripe.com/events/evt_1NppnrEkTO8kaKcKWQD8cPeX
https://dashboard.stripe.com/events/evt_1NppnrEkTO8kaKcK1HMv8vrU
These are the two which look identical, except for unique src_ ids
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
I have to step away for a meeting, but I will respond with anything else you need when I return! Thank you.
๐i'll respond here as soon as I untangle what's going on here
๐
Just a quick update from me - those sources are prety old (more than a couple years old) so I'm having some trouble really tracking down the full timeline of what's happening here
That's correct. These are monthly automatic updates to old payment sources from Stripe.
As far as I can tell, these were two separate sources that were created with different API requests and were both attached to that customer. These aren't duplicate automatic updates, it just looks like duplicates because the same card was added to the customer twice
These are the first 4 events, they all look automatic to me. Not API request-initiated.
Yeah they aren't realted to a specific request - the same card was added to the customer twice so you're getting four events:
- 2
customer.source.updatedevents (one for each card) - 2
paymetn_method.card_automatically_updatedevents (one for each card)
You get both customer.source.updated AND payment_method.card_automatically_updated because card sources can also be used as payment methods
That's correct. But they look to be for the same underlying card, not two different cards.
Yeah that's because what I mentioned before - it looks like a long time ago (like 2020) the same card was added to this customer twice
We (stripe) don't do any automatic deduplication
I'm only seeing 1 card associated with the Customer, if you go to Stripe customer details.
So it's possible to add the same card to a customer more than once
Yeah one of the cards was recently deleted (a few seconds after all those events)
So this customer truly only has one default payment source now?
Or, one payment source in general.
Yes, right now it should truly only have one source
Is there a way to search or locate any customers with duplicate underlying payment sources to avoid this from happening again?
It'd be a pretty large undertaking - you'd have to list all the sources/payment methods for each customer and check for any duplicate fingerprints (https://stripe.com/docs/api/cards/object#card_object-fingerprint) to know if they're the same
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Aha, so the fingerprint is a secondary id for the underlying card details?
I'm wondering if we can put a check in our code when handling these customer.source.updated events to confirm the underlying details are the same, so we can make that a no-op.
I wouldnt really call it a secondary ID - but yes, if your code is sensitive to duplicate card sources then you can add something in your webhook handler to check the fingerprint and make sure it's unique
Hmm ok. Why does Stripe allow non-unique fingerprints on multiple customer.sources?
Because we don't de-duplicate those automatically for you, you need to determine appropriate flows for your app/business