#steve-paymentelement-confirmation
1 messages · Page 1 of 1 (latest)
Hello 👋
With the current flow, you'd update the PaymentIntent server-side to apply any promo code OR change in pricing & then use fetchUpdates() client-side to retrieve the updated PaymentIntent
https://stripe.com/docs/js/elements_object/fetch_updates
Let me know if that makes sense @onyx berry
Also, there's a beta for rendering PaymentElement without creating a PaymentIntent first
https://stripe.com/docs/payments/defer-intent-creation
You'll need to contact our support team to see if you're eligible for early access
steve-paymentelement-confirmation
So if you changed the price you would call the fetchUpdates method which would need to go to the server to get the client secret
you always need the client_secret value client-side for PaymentElement
correct. but what should I do in the fetchUpdates promise? do you have an example?