#testing_83560
1 messages · Page 1 of 1 (latest)
Every payment method ID is unique. What kind of uniqueness are you referring here? Can you provide an example?
for example a user creates a setupintent with sepa_debit.He provide a valid iban number.
the user is given the option to setup another payment method for future use.He provides the same iban number .Is there a way to check if they are duplicate.
Yes! fingerprint can be used to check the uniqueness in such a case: https://stripe.com/docs/api/payment_methods/object#payment_method_object-sepa_debit-fingerprint
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Same goes for other payment methods.
for example a user creates a setup intent using paypal using an account.How can I validate if he is using the same account for another setup.
If the IBAN number is the same, the fingerprint will be the same even though payment method IDs are different
Similarly for other payment methods
Some payment methods do not have fingerprint
Can you share example payment methods that don't have fingerprint?
Paypal
And cards have the same finger print even if the year or cv changes
ideal also does not have fingerprint
And cards have the same finger print even if the year or cv changes
This is expected. Same card number will have same fingerprint regardless the expiry or cvc
ideal also does not have fingerprint
If an iDEAL is saved, it will be saved as SEPA direct debit [0] which has fingerprint
Paypal
payer_idcan be used: https://stripe.com/docs/api/payment_methods/object#payment_method_object-paypal-payer_id
[0] https://stripe.com/docs/payments/ideal/save-during-payment
so there is no unique identifier common for every payment method
In general, fingerprint can be used, but there can be exception like PayPal
ok