#learner-confirmsetup
1 messages · Page 1 of 1 (latest)
Hey! confirmSetup is specifically for use with the Payment Element: https://stripe.com/docs/js/setup_intents/confirm_setup
Complete reference documentation for the Stripe JavaScript SDK.
Got it. Thank you. I think this should be specified in the Docs as well
Or is it already specified and I missed it?
The Payment Element is mentioned in that doc, yes
I mean when we we use CardNumberElement instead of PaymentElement - it seems this use case is not documented in this guide and is also a common use case?
Most of our guides/docs have been re-written to use Payment Element now (it's the recommended integration path)
Thank you. Kind feedback. A small note in the documentation for same will still help
@idle thistle how should we handle this error response type? By creating a new SetupIntent or something else?
Can you paste that id for me please?
you mean setup_intent.id ? it's "seti_1K1sIcSCTc5Q7Oo30WLweq7z"
Looks like you're trying to confirm the Setup Intent even though it's already confirmed: https://dashboard.stripe.com/test/logs/req_qb6SUXxC9hsD0Q
which code in the response would suggest that setup intent is already confirmed and we would need to create a new setup intent?
The status: 'succeeded' field
ok, what are the other possible error use cases? Would need to handle them in client code
The doc_url field will help you
What specifically do you need to handle?
You can localise the Stripe.js error if that's what you mean?