# If you are using react, you can set the clientSecret as a state variable, so that PaymentElement can be automatically re-rendered when clientSecret is set.