example: Add `elements.update()` to ensure latest payment amount is reflected (#54848)
### What? In the Payment Element demo, call [`elements.update()`](https://stripe.com/docs/js/elements_object/update) when the payment amount value is updated via slider. This ensures wallets (Apple Pay, Google Pay) display the correct payment amount. --------- Co-authored-by:Michael Novotny <manovotny@gmail.com>
Showing
Please
register
or
sign in
to comment