#pseudonym01
1 messages · Page 1 of 1 (latest)
Are you using Stripe.js Elements to integrate?
If so, you'd need to call fetchUpdates() after updating the PaymentIntent
https://stripe.com/docs/js/elements_object/fetch_updates
I believe we are indeed doing both of those things
Working on finding the line of code as we speak
Confirmed, we are indeed updating the payment intent on the backend and on the front end calling fetchUpdates after a response
I could generate a PaymentIntent id if you would like to follow along on your end?
Sure
is this page live? If so, can you share the URL?
I have a feeling that the fetchUpdates function is being called before the PaymentIntent gets updated
It sure does seem like it
However we wait for a response from the server before doing anything
I'll double check we're completing the paymentIntent update first, if you don't mind standing by?
I'd be happy to share a code snippet to show that we are in fact awaiting a response from the server, which in turn does make the paymentIntent update call, before calling fetchUpdates
can you add a console.log before you call fetchUpdates to see if its even being called in the first placE?
Let's start with that, I'm thinking about what else could it be
Alright will give it a go
Assuming we receive a 200 result from UpdatePaymentIntent, fetchUpdates should see no delay in retrieving the most recent amount, correct?
Ideally, yeah
Hmm
Change is live here: https://alpha.instaTip.app/?touchpoint=3bcb6fb7-38f6-495d-97e7-deb3cd8e9c5e
InstaTip
What are you logging before calling fetchUpdates?
i don't see any console.logs after clicking on the amount
"fetch updates fired"
👍
Quick question
does the digital wallets pull the amount from the PaymentIntent after its been updated?
If you're calling fetchUpdates after the update then yeah it should
Gotcha, I think I found where we are missing it, thank you for your help and patience today!