#jamie_97274

1 messages · Page 1 of 1 (latest)

craggy plumeBOT
#

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

cedar oasis
#

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?

ember oriole
#

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

cedar oasis
#

Gotcha. Have you tried calling fetchUpdates(...) in your code yet? I wonder if it just works

ember oriole
#

Will try that now

cedar oasis
#

Ah don't think it will work though, as express checkout element only supports defer intent flow.

ember oriole
#

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

craggy plumeBOT
cedar oasis
#

When you say it all works, does the fetchUpdates(...) function work?

ember oriole
#

Testing that now, but your screenshot of the docs it being only supporting defered intent flow is incorrect

#

because otherwise my current setup (minus coupons) wouldn't work

#

I have to go but will test more tomorrow, I will open a new ticket here tomorrow