#imex-paymentelement-remix
1 messages · Page 1 of 1 (latest)
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?
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
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?
(look at the first image), but I'm calling stripe.confirmPayment on client, by normal function, not action function and I cant use useTransition hook, cuz its just not working. Can I somehow get state from strapi?