#pseudonym01

1 messages · Page 1 of 1 (latest)

tall tapirBOT
granite basin
austere jewel
#

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?

granite basin
#

Sure

austere jewel
#

pi_3OKnsrEbpWpbwB0V0fYsGwfa

granite basin
#

is this page live? If so, can you share the URL?

granite basin
#

I have a feeling that the fetchUpdates function is being called before the PaymentIntent gets updated

austere jewel
#

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

granite basin
#

can you add a console.log before you call fetchUpdates to see if its even being called in the first placE?

austere jewel
#

sure, can't get that deployed though

#

Any other suggestions?

granite basin
#

Let's start with that, I'm thinking about what else could it be

austere jewel
#

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?

granite basin
#

Ideally, yeah

austere jewel
#

Hmm

granite basin
#

What are you logging before calling fetchUpdates?

#

i don't see any console.logs after clicking on the amount

austere jewel
#

"fetch updates fired"

granite basin
#

yeah I don't see that in the console

#

Can you share the code you're working with?

austere jewel
#

Unsure? Don't think I have clearance for that

#

we'll dig into it and come back

granite basin
#

👍

austere jewel
#

Quick question

#

does the digital wallets pull the amount from the PaymentIntent after its been updated?

granite basin
#

If you're calling fetchUpdates after the update then yeah it should

tall tapirBOT
austere jewel
#

Gotcha, I think I found where we are missing it, thank you for your help and patience today!