#leyton-card-duplicates
1 messages ยท Page 1 of 1 (latest)
Hi ๐
You can check the fingerprint of the Card object. That will uniquely identify cards and we designed it for just this kind of scenario
https://stripe.com/docs/api/payment_methods/object#payment_method_object-card-fingerprint
Brilliant! When a user signs up, they add their card details, and then I use "createPaymentMethod" in js to create the payment method using the provided details. This then returns the paymentMethod, which I presume will have the fingerprint on it?
leyton-card-duplicates
fingerprint is not visible client-side
you have to retrieve it server-side with a Secret API key, but otherwise yes
I see. Okay so lets say I've implemented some endpoint in my server that checks if a credit card has been used before (GET User/IsPaymentMethodUnique or something) , and within that method, I manage the get ahold of this fingerprint, then what? Is there some stripe API endpoint that I can pass the fingerprint to that will detect if it's been re-used? Or is that something I'd have to keep track of myself?
you keep track of all of this yourself
Are there any PCI compliance implications regarding keeping track of card fingerprints?
no
specifically the section here: https://stripe.com/docs/security/guide#out-of-scope-card-data