#rayrayy-confirm-setupintent

1 messages · Page 1 of 1 (latest)

humble mason
#

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

scarlet cloud
#

What if the user closes the modal that adds the card ?

#

not sure how to acess that edge case

humble mason
#

You mean closing the authentication modal? So that will complete/fail the in-flight confirmCardSetup attempt so that you can call it again

scarlet cloud
#

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 ?

humble mason
#

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

scarlet cloud
#

ahh mb forget i said that 😅

#

To fail the inflight setup we would use Stripe destroy correct ?

humble mason
#

Are you asking how to cancel/fail the in-flight setup attempt? Why are you trying to do that?

scarlet cloud
#

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

humble mason
#

Do you have a video, or even better a repro website I can look at on my end?

scarlet cloud
#

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 ?

humble mason
#

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?

scarlet cloud
#

yep!