#imex-paymentelement-remix

1 messages · Page 1 of 1 (latest)

subtle jayBOT
proud jewel
#

Not sure how remix works yet (but have been meaning to look at it), but generally speaking while you await the result from confirmPayment you'll want to block your underlying UI from resubmission (or show an overlay etc)

#

I'm not entirely sure what you mean by:

because its using stripe handler, not remix, I cant get form state

Can you explain with a bit of code showing the issue?

still shore
# proud jewel I'm not entirely sure what you mean by: > because its using stripe handler, not...

remix has own hook named useTransition for action state. When action is idle, the useTransition().state will be idle, when its submitting useTransition().state will be submitting, when its loading it will be loading. With this hook we can inform the user is action working or I need to click again? On video, when I click, nothing happedns, but after few seconds I got redirected to success page. I followed this tutorial https://www.youtube.com/watch?v=5aI0hJX_XXM

proud jewel
#

I'm not sure, not really familiar with remix as you say. How are you tracking/interfacing with the stripe confirmation result?

#

Part of your code must call confirmPayment correct?

still shore
charred frost
#

Please don't share pictures of code, this makes it really hard to help you

#

I unfortunately don't really understand your ask