#Quentin

1 messages ยท Page 1 of 1 (latest)

humble pawnBOT
warm quartz
#

Hi there!

#

Can you rephrase your question? I'm not sure to undertsand the issue.

inner zenith
#

I want to add a new credit card to a customer

#

so I've made a setupIntent

warm quartz
inner zenith
#

const setupIntent = await stripe.setupIntents.create({
payment_method_types: ['card'],
customer: user.customer_stripe_id,
});

#

ahhhh

#

it's a stripe element method?

warm quartz
#

It's a Stripe.js method, that you need to call when using the PaymentElement with a SetupIntent.

inner zenith
#

so it's wasn't the good method but it helps me to find the "confirmCardSetup" which does the job

warm quartz
#

Oh right! sorry about that.

#

Glad that you solved the issue ๐Ÿ™‚

inner zenith
#

Thank you ๐Ÿ˜‰