#paragonn - confirmCardPayment
1 messages · Page 1 of 1 (latest)
Ah I see. So we don't have a way of preventing a new payment method being created here but you can go through your existing payment methods and delete duplicates yourself once it has been created
We have a fingerprint field which is a hash you can compare to see if two cards are the same https://stripe.com/docs/api/cards/object#card_object-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.
So I could run a process on the customer to check for duplicate and delete the duplicates
Correct
another thought that I just had
i know the customer before the confirmCarPayment
is there a way to confirm a payment method before confirmCardPayment
I have the card element - can I compare that with existing payment methods
You could but that might add a decent delay to when you actually confirm the payment. You would need to create the payment method, send the ID back to your server, and have the duplicate removal happen then
that's true
what if the duplicate payment method is the default for a subscription
will stripe automatically use the new default payment method?
It would use the default payment method on the account at that point I believe.
ok
Also it is worth noting that if this is your own custom page, you can list your saved payment methods for this user and let them reuse those cards
roger that