#benito-react

1 messages · Page 1 of 1 (latest)

stable stump
#

Hi there, you need to give me more context, what object do you need to update?

rocky violet
#

well not sure I think is elements obj is not correct...

#

const elements = useElements();

#

I pay for previous checkout

stable stump
#

what's not correct, can you give me an example?

rocky violet
#

if I not refresh the page elements don't have correct clientSecret

stable stump
#

You need to describe the problem more clearly, right now it's very vague and I don't know how to start the troubleshooting.

rocky violet
#

the elements don't hove secretClient set

stable stump
#

Can you share with me the relevant code?

rocky violet
#

yes

stable stump
#

If the problem is with clientSecret, you should share with me code related to clientSecret

rocky violet
#

is when the stripe element is initialise with stripe payment intent

stable stump
#

So you code is updating the clientSecret when the token changes, so when do your code updates the token ?

rocky violet
#

token is secretClient come from server side

stable stump
#

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.

rocky violet
#

ok I found thanks for the path