#futurefuture
1 messages · Page 1 of 1 (latest)
It sounds like you're making an asynchronous request to update the Payment Intent's amount. Which wallet are you talking about specifically?
thanks for for responding! yes exactly. so basically i am adding a tip on the checkout page. this asynchronolusly updates the payment intent. using google pay, i just see the previous payment intent amount until i refresh
Ah, okay. I think that's inherent in the product and cannot be changed without re-rendering the Payment Element, but let me check with another one of my peers real quick to make sure you can't potentially re-mount the Payment Element after the update
okay thanks, i appreciate it
i did try rerendering the payment element btw and still the same thing as far as i can tell
Ah! Okay, so my colleague mentioned there's a Stripe JS function that does exactly what you're looking for: ~~https://stripe.com/docs/js/elements_object/update~~
thanks, so do i just call update then? or do i need any specific params?
Sorry, wrong link! Here's the right one: https://stripe.com/docs/js/elements_object/fetch_updates
okay thanks a ton. ill give this a shot!