stripity-stripe icon indicating copy to clipboard operation
stripity-stripe copied to clipboard

Documentation for confirmCardSetup incorrect

Open jfreeze opened this issue 4 years ago • 3 comments

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.

jfreeze avatar Jul 01 '20 22:07 jfreeze

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.

snewcomer avatar Jul 02 '20 12:07 snewcomer

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.

jfreeze avatar Jul 02 '20 15:07 jfreeze

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.

nathany avatar Oct 08 '20 20:10 nathany

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.

github-actions[bot] avatar Oct 22 '23 02:10 github-actions[bot]

Closing this issue after a prolonged period of inactivity. If this issue is still relevant, feel free to re-open the issue. Thank you!

github-actions[bot] avatar Nov 06 '23 02:11 github-actions[bot]