#vyne.david.osolkowski
1 messages · Page 1 of 1 (latest)
Hi there! No, it's not possible to update the intent amount client side
If you'd like, you could pass the customer-provided value to your backend and update the intent server side. You could then use fetchUpdates to update Elements client side: https://stripe.com/docs/js/elements_object/fetch_updates
Okay, I think we'd prefer to avoid that approach because of the lag it might generate, is finalizing payments on the server still viable? https://stripe.com/docs/payments/finalize-payments-on-the-server?platform=web&type=payment
That would still require setting the amount server side
This might be a better alternative: https://stripe.com/docs/payments/accept-a-payment-deferred
Rendering the PaymentElement before creating the PaymentIntent
Right, but it would be done after form submission, so the user would have already locked in their payment information
But I haven't seen the approach you just linked so I will check it out
Oh okay, so you can initialize the UI without a payment intent secret and just do both steps in a row after submission, so it's closer to the "default" approach just re-ordered
Yep, exactly