#fon

1 messages ยท Page 1 of 1 (latest)

peak galeBOT
drowsy garden
#

Do you pass SetupIntent client secret in such format: seti_xxx_secret_xxx?

#

It should be SetupIntent client secret, not SetupIntent ID

tawny jewel
#

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 ๐Ÿค”

drowsy garden
#

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

tawny jewel
#

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 ๐Ÿ˜„

drowsy garden
#

No worries! We are here to help ๐Ÿ˜„