#Mammouth

1 messages · Page 1 of 1 (latest)

mossy atlasBOT
hoary summit
#

Hi there

#

Are you using Payment Element here?

dense nova
#

elements = stripe.elements({ clientSecret, appearance });

#

paymentElement = elements.create("payment", {layout: "tabs", paymentMethodOrder: ['card', 'google_pay']});
paymentElement.mount("#payment-element");

hoary summit
#

Yep

#

Cool so you can absolutely update the amount without re-rendering Payment Element. You would just update the PaymentIntent's amount server-side.

#

Then you want to call elements.fetchUpdates() on your client

#

Sorry

#

It is elements.fetchUpdates()

dense nova
#

thanks for your quick answer