#Valentin-element
1 messages · Page 1 of 1 (latest)
Hi! You mean you want to update the PaymentIntent used by a Payment Element? What exactly do you want to update?
Yes, the payment intent used by the Payment Element
The reason I ask is because I have the option of applying voucher codes. When one is applied i update the PaymentIntent in the background but it's not updated in the element. So when I try to pay with google pay here it still shows the old, undiscounted price. It still ends up charging the user the correct price but the fact it shows the wrong one is a problem.
no we don't support that today
it's a common complaint and something on the roadmap to fix by adding some concept of a "refresh" function on the already-mounted Element, but right now the PaymentElement simply doesn't work for the use case of changing the price after the payment page has already loaded, it's not designed for it
Right ok, thanks for confirming