#rayrayy-confirm-setupintent
1 messages · Page 1 of 1 (latest)
Hello! There isn't a way to cancel it - the expectation would be that you prevent your user from being able to initiate a second one
What if the user closes the modal that adds the card ?
not sure how to acess that edge case
You mean closing the authentication modal? So that will complete/fail the in-flight confirmCardSetup attempt so that you can call it again
ahhh ok got it
I'm using react so the inflight modal
<Elements stripe={stripePromise}> modal would need to re render for it to fail ?
Correct me if im wrong the destroy function would fix correct ?
Can you clarify what you mean by "<Elements stripe={stripePromise}> modal would need to re render for it to fail ?" - you shouldn't need to re-render in most cases, so I'm not following
ahh mb forget i said that 😅
To fail the inflight setup we would use Stripe destroy correct ?
Are you asking how to cancel/fail the in-flight setup attempt? Why are you trying to do that?
I get an error where the user clicks the submit button and if it dosent work and he closes the modal
it gives inflight error
Do you have a video, or even better a repro website I can look at on my end?
yea one sec wierd its working now hahah
i'l come back with vid next time it happens lol
While i have u another question is there a test card that can be added to payment intent but fails when charged ?
What do you mean by "can be added to the payment intent" - do you maybe mean is there a test card that can be setup/attached to a customer but fails when charged?
yep!