#Carlos - Payment Error
1 messages · Page 1 of 1 (latest)
Uncaught (in promise) IntegrationError: Invalid value for stripe.confirmCardPayment intent secret: value should be a PaymentIntent client secret. You specified: a SetupIntent client secret.
Also a request id would help
Ah so yeah to confirm a payment you need the secret from the payment intent
You're passing in a secret from a setup intent which is different
This is a trial model subscription, it has no payment intention.
Which element should I use in this case then?
confirmCardPayment is for confirming a payment
If you're using a setup intent you probably want this method: https://stripe.com/docs/js/setup_intents/confirm_card_setup
Can confirmCardSetup be used with a passing a payment intent clientSecret?