#benito-react
1 messages · Page 1 of 1 (latest)
well not sure I think is elements obj is not correct...
const elements = useElements();
I pay for previous checkout
what's not correct, can you give me an example?
if I not refresh the page elements don't have correct clientSecret
You need to describe the problem more clearly, right now it's very vague and I don't know how to start the troubleshooting.
the elements don't hove secretClient set
Can you share with me the relevant code?
If the problem is with clientSecret, you should share with me code related to clientSecret
is when the stripe element is initialise with stripe payment intent
So you code is updating the clientSecret when the token changes, so when do your code updates the token ?
token is secretClient come from server side
And you need to check your code and see why the token is not updated. If it's updated properly, the stripe elements will receive the updated clientSecret.
ok I found thanks for the path