stripity-stripe
stripity-stripe copied to clipboard
Documentation for confirmCardSetup incorrect
The docs show an example obtaining a setupIntent
by calling
stripe.confirmCardSetup(setupIntentId, {
but the Stripe documentation says that instead of the id, the client_secret should be the first argument
stripe.confirmCardSetup('{SETUP_INTENT_CLIENT_SECRET}', {
When using the id, Stripe reports the error to me that a client_secret should be used, but I am unable to get either method working.
I agree the README needs to be updated.
https://stripe.com/docs/api/setup_intents/object#setup_intent_object-client_secret
RE: neither working. I keep thinking we need an example application along side a client side application. This might be an impetus for me to make one.
I think I now know how to get setup_intent working. I was missing basic understanding that you want to use one of payment_intent or setup_intent, not both.
I was also misguided by the readme suggesting that an id is needed rather than clientSecret. I probably should've read the official docs. https://stripe.com/docs/payments/save-and-reuse
Furthermore, the documentation at https://stripe.com/docs/payments/save-and-reuse creates a customer beforehand and passes it to the SetupIntent.
This issue has been automatically marked as "stale:discard". If this issue still relevant, please leave any comment (for example, "bump"), and we'll keep it open. We are sorry that we haven't been able to prioritize it yet. If you have any new additional information, please include it with your comment.
Closing this issue after a prolonged period of inactivity. If this issue is still relevant, feel free to re-open the issue. Thank you!