#dxher
1 messages ยท Page 1 of 1 (latest)
๐ Thanks for reaching out
I Provide the charge id and card_id
where are you providing these?
in stripe.paymentIntents.confirm
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 ?
ohh my bad when I say charge Id I mean paymentIntent Id
I just stored the info in a variable
Not sure I'm understanding how are you passing the PaymentIntent Id to the stripe.confirmPayment method.
Are you talking about this method?
https://stripe.com/docs/js/payment_intents/confirm_payment
My apologies, probably should've mentionned Im using node.js
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
here's the document Im following
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?
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.
oh my bad, for future purposes, where can I find that?
Not a problem, you can find them within the logs in your Stripe dashboard, or if the request errors then the request ID is usually included in the response.
https://support.stripe.com/questions/finding-the-id-for-an-api-request
https://dashboard.stripe.com/test/logs?method[0]=post&method[1]=delete&direction[0]=connect_in&direction[1]=self
Could you also double check that Payment Intent ID, I'm not readily finding anything by that ID.
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
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.
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?
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?
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
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 !
Glad to hear that helped!
@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
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.
sounds good, thank you