#juangomez0120_payment-intent-confirm

1 messages ยท Page 1 of 1 (latest)

deep spruceBOT
#

๐Ÿ‘‹ 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.

tough meadow
#

More relevant information:

Payment intent creation req_id: req_dpGGQD186eVV1I

Payment intent confirmation req_id: req_aDZO2Y2tjWflww

patent grove
#

beat me to it

tough meadow
#

req_aDZO2Y2tjWflww

patent grove
#

How are you confirming the payment intent?

tough meadow
#

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

patent grove
#

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

tough meadow
#

Makes sense. I think I found where we call the confirmation endpoint

We use confirmCardPayment after the payment intent is confirmed

patent grove
#

Yeah, that'll do it

tough meadow
#

We don't explicitly set the expected_payment_method_type attribute, but I believe that the confirmCardPayment set's it by default?

patent grove
#

Yes

tough meadow
#

Okay cool, the right function for this would be paymentIntents.confirm I believe right?

patent grove
#

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

tough meadow
#

Amazing

#

Thanks a lot!

patent grove
#

Sure thing! Happy to help ๐Ÿ™‚