#juangomez0120_payment-intent-confirm
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/1358842837902561490
๐ 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.
- juangomez0120_error, 3 days ago, 11 messages
More relevant information:
Payment intent creation req_id: req_dpGGQD186eVV1I
Payment intent confirmation req_id: req_aDZO2Y2tjWflww
Can you share an API request ID for the request that throws this error? It will start with req_
Here's how you can find a request ID: https://support.stripe.com/questions/finding-the-id-for-an-api-request
beat me to it
req_aDZO2Y2tjWflww
How are you confirming the payment intent?
Hm I'm actually not sure, I thought that was handled automatically with the "automatic" collection attribute but I'm seeing that we send another confirmation request
I'll take a look at it, sorry not having the answer for that rn, we have a pretty large codebase
No worries
The reason I ask is I see this in the /confirm request
expected_payment_method_type: "card",
Which would be why you get the payment_intent_incompatible_payment_method error code
Makes sense. I think I found where we call the confirmation endpoint
We use confirmCardPayment after the payment intent is confirmed
Yeah, that'll do it
We don't explicitly set the expected_payment_method_type attribute, but I believe that the confirmCardPayment set's it by default?
Yes
Okay cool, the right function for this would be paymentIntents.confirm I believe right?
That's for server side APIs. It looks like this is being done client-side.
If you are using Stripe.js you would want to use this method
Sure thing! Happy to help ๐