#tailoris

1 messages · Page 1 of 1 (latest)

polar galeBOT
empty grove
#

Hello! Generally you need to handle that yourself somehow.

static warren
#

I see.. I read on stackoverflow that stripe returns some kind of fingerprint that is a unique identifier for that specific card. However, I am using a checkout.session for handling the subscription start. So I cannot really check the card fingerprint before that. Do you have maybe some kind of suggestion how I could handle this?

empty grove
#

You can use the fingerprint to tell if a card matches one that's already been used, but as you said you can't check until after the fact when using Checkout. If you want to check beforehand you'd need to not use Checkout and instead build a custom payment form on your own website using a guide like this one: https://docs.stripe.com/payments/build-a-two-step-confirmation

static warren
#

awesome, thank you for your help

empty grove
#

No problem!

static warren
#

just one additional question

#

when the user checks out, I assume stripe returns some object where this fingerprint can be found right?

empty grove
static warren
#

so basically, the checkout flow would be like this right?
user creates payment method, then clicks checkout and that's when the subscription starts

empty grove
#

You mean if you built a custom one?

static warren
#

yup

empty grove
#

Yes, that's basically it at a high level. After the Payment Method is created you can check the fingerprint to see if it matches a fingerprint that's already been used, and if it has you can show an error instead of creating the Subscription.

static warren
#

alright, I think I got it 😁