#dxher

1 messages ยท Page 1 of 1 (latest)

open flaxBOT
unique ridge
#

๐Ÿ‘‹ Thanks for reaching out

I Provide the charge id and card_id
where are you providing these?

hollow chasm
#

in stripe.paymentIntents.confirm

unique ridge
#

When confirming the PaymentIntent, a charge will be created, you're not supposed to pass a charge Id

#

How are you collecting Payment Method details, using Elements ?

hollow chasm
#

ohh my bad when I say charge Id I mean paymentIntent Id

#

I just stored the info in a variable

unique ridge
hollow chasm
#

My apologies, probably should've mentionned Im using node.js

#

here's the document Im following

frail wadi
#

Hi ๐Ÿ‘‹ I'm jumping in as my teammate needs to step away soon. Can you share the ID of the request that you made which encountered this behavior?

hollow chasm
#

for sure, one second

#

pi_3LxeMUKkAB1G8GzA0ubHOH8v

frail wadi
#

That's the ID of the Payment Intent, request IDs begin with req_, but I think I can find it from what you've provided.

hollow chasm
#

oh my bad, for future purposes, where can I find that?

frail wadi
hollow chasm
#

that is in fact the id, it was done in test mode, Im not sure if that affects it maybe?

#

oh my bad

#

its a l not a one so here:

#

pi_3LxeMUKkABlG8GzA0ubHOH8v

frail wadi
#

Thanks, looking at that Payment Intent, I see the request that was made to create it, but I'm not seeing evidence of a request having been made to confirm it.

hollow chasm
#

weird? I do call stripe.paymentIntents.confirm and the ID does get taken but I've noticed the payment_method stays null

#

you think its just not picking up at all?

frail wadi
#

That is odd, because the payment_method field for that Payment Intent is not null, you set it during the creation request:
https://dashboard.stripe.com/test/logs/req_Rn9zIG4CVlWbQt

Additionally, I'm seeing no requests being made for your account to confirm a Payment Intent. Are you sure the chunk of code that you're expecting to make that request is getting executed?

hollow chasm
#

I do confirm a paymentintent, but going off what you're telling me it never gets completed.

#

That helps a lot, I'll take a look into it and Ill get back to you if I have any more question, appreciate the help @frail wadi !

frail wadi
#

Glad to hear that helped!

hollow chasm
#

@frail wadi sorry to bother you again, Im revising from the first step to paymentIntents.confirm and I was wondering if its a necessity to retrieve and update a paymentIntent after it has been created

frail wadi
#

That depends on your flow, and whether you will need to make changes to the Payment Intent or reference it in the future. There is not a technical requirement that you have to retrieve/update a Payment Intent though.

hollow chasm
#

sounds good, thank you