#jamie_97274
1 messages · Page 1 of 1 (latest)
Hello jamie_97274, we'll be with you shortly! 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.
• jamie_97274, 4 days ago, 11 messages
• jamie_97274, 4 days ago, 8 messages
• jamie_97274, 5 days ago, 13 messages
Hmm ideally with PaymentElement you'd call fetchUpdates(...) to update the elements with latest PaymentIntent info.
https://stripe.com/docs/js/elements_object/fetch_updates
However when you then click on the express checkout wallet button, after the payment intent price has already been updated and confirmed in stripe dashboard.
What do you mean by "confirmed" here? Can you elaborate on the context?
i.e.
-
I load the payment page
-
I see a pending payment intent for 9.99 in my dashboard
-
I add a coupon
-
I see pending payment intent from 9.99 has changed to post coupon price to for example 5.99
-
I click google wallet pay button
-
in google wallet popup it shows 9.99
-
I pay through google wallet popup
-
payment was 5.99 not 9.99 that google popup showed
Gotcha. Have you tried calling fetchUpdates(...) in your code yet? I wonder if it just works
Will try that now
Ah don't think it will work though, as express checkout element only supports defer intent flow.
Seriously?
I've been recommended to use this as it was the "new recommended way" to add google wallet/apple pay
This makes no sense at the moment, because it currently. all works
it just doesn't show the updated price if the payment intent is updated. So that docs is wrong then
When you say it all works, does the fetchUpdates(...) function work?