#sparkling_armadillo_08414

1 messages · Page 1 of 1 (latest)

plain crownBOT
#

Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

simple zealot
#

This function is what actually confirms the payment intent to complete payment

visual inlet
#

Ok i confirm the payment but what is the if and else statement for?

#

I commented it out because it wasn't letting me call setLoading and checkStatus functions, it was givining uncaught error on if statement

simple zealot
#

It's for displaying an error client-side so you can show your customer that something went wrong if the card/payment was declined

visual inlet
#

there is this checkStatus function, would this help users know if its declined

#

when i have this check status function is it ok if i don't have the if and else statement in confirm payment funciton

simple zealot
#

I have no context on how/where you're calling this checkStatus function so I don't know if you can remove the other if/else statement from the handleSubmit function