#fon
1 messages ยท Page 1 of 1 (latest)
Do you pass SetupIntent client secret in such format: seti_xxx_secret_xxx?
It should be SetupIntent client secret, not SetupIntent ID
that's correct, it's seti_xxx_secret_xxxx
everything else is exactly copied and pasted from the tutorial, and the docs do say that:
The client secret for a PaymentIntent or SetupIntent.
Which is weird ๐ค
Could you check whether your public key at frontend is from the same account which the secret key is used to create the subscription?
Passing client secret should just work for SetupIntent as well
ohhhh I am stupid. Already late here.
Obviously copied and pasted the tutorial, but it's using confirmPayment, which expects a PaymentIntent.
I guess I need to use confirmCardSetup or something like that to move along ๐๐พ
sorry for bothering you river. And thanks for steering me in the right direction ๐
Oh right! It'll be stripe.confirmSetup in this case: https://stripe.com/docs/js/setup_intents/confirm_setup
No worries! We are here to help ๐