#mike-j_api
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1230129383646171187
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- mike-j_api, 5 hours ago, 6 messages
- mike-j_best-practices, 1 day ago, 8 messages
hi there!
once the SetupIntent is successful, you should get back a PaymentMethod object that you can chare in the future
you could listen to the setup_intent.succeeded event for example
Hmm, in the Webhooks page of the dashboard, I'm only seeing setup_intent.created in the timeframe of giving the card details. No error events and my stripe listener isn't capturing any other events.
setup_intent.succeeded is an event we listen for
you get setup_intent.created when you create the SetupIntent, sure. but the PaymentMethod will be created only after you confirm the SetupIntent, and that's when you'll get setup_intent.succeeded.
did you sucessfully confirm the SetupIntent?
I haven't inlcuded "confirm = true" in the request to create the SI. Is that what I'm missing? I assumed that the end user entering their card details was confirmation?
I'm a bit confused. can you share a SetupIntent ID (seti_xxx) so I can better understand what you are doing?
seti_1P6V8aJk75hPCxYyPKCBfEtw
Now I've clicked through a bit more, that's saying it's incomplete, but I definitely entered payment details through the frontend using the client_secret that this created.
looks like your integration is missing one step:
- create the SetupIntent on the backend (OK)
- use the client_secret on the frontent to collect the payment information (OK)
- confirm the SetupIntent on the frontent (the part that is missing)
the last step is explained here: https://docs.stripe.com/payments/save-and-reuse?platform=web&ui=elements#submit-payment-details
No wonder I couldn't see it in our backend! ๐ Ok, thanks for your help ๐