#Mammouth
1 messages · Page 1 of 1 (latest)
elements = stripe.elements({ clientSecret, appearance });
paymentElement = elements.create("payment", {layout: "tabs", paymentMethodOrder: ['card', 'google_pay']});
paymentElement.mount("#payment-element");
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()
thanks for your quick answer