#paragonn - confirmCardPayment

1 messages · Page 1 of 1 (latest)

spiral meteor
#

Hello, can you provide your client-side code snippet for this?

stable olive
#

Above is the confirmCardPayment() call

#

let me know if you need more

spiral meteor
#

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

stable olive
#

So I could run a process on the customer to check for duplicate and delete the duplicates

spiral meteor
#

Correct

stable olive
#

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

spiral meteor
#

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

stable olive
#

that's true

#

what if the duplicate payment method is the default for a subscription

#

will stripe automatically use the new default payment method?

spiral meteor
#

It would use the default payment method on the account at that point I believe.

stable olive
#

ok

spiral meteor
#

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

stable olive
#

roger that