#th3fallen

1 messages · Page 1 of 1 (latest)

uncut rainBOT
plucky carbon
#

How can I help?

sweet hinge
#

morning

#

the issue im running into is a user goes to check out and changes their payment info (card number in this instance), then clicks purchase.

#

if the payment fails they obviously will try to edit their card info again.

#

but once they hit continue on the payment block it's doing a stripe.confirmSetup() so when they come back to edit a second time their setup intent has already been completed and cant be confirmed again.

#

But! since im using the react stripe elements thing the setupIntent key is not mutable so i cant just fetch a new one and rerender the component for some reason or another. so my question is what is the typical flow for this case?

plucky carbon
#

But! since im using the react stripe elements thing the setupIntent key is not mutable so i cant just fetch a new one and rerender the component for some reason or another. so my question is what is the typical flow for this case?
That's correct, once the SetupIntent has been confirmed with the details, there's no way to update it with new PaymentMethod details.

sweet hinge
#

oooooooooooh

#

and that would let me theoretically create multiple setup intents for the case of failed payments huh?

#

i'll give that a shot. it sounds like exactly what i was hoping to be able to do

plucky carbon
#

Yeah try it out, It should help avoid the situation you're running into