Community Member
 · Flutterflow rookie in learning

catch exception in custom action output

Troubleshooting

hey guys,

so I am using stripe payment and i have my payment sheet when people are about to pay.

If it is not completed/filled properly, it returns an exception

I would like my action chain to do something if it is completed correctly and something else if it returns the exception. How would i build this? What should i put as a condition in the tree

the action output is paymentInfoValidated (this return a paymentID if completed properly) and if it fails it will return the exception

What have you tried so far?

not much, im really not sure what to return. I tried to check if the paymentID i return (which is a string) if set/not empty but it seems like despite the exception it still creates that field or at least initialize it because when payment fails, it still gets me tot he left part of the tree !

Did you check FlutterFlow's Documentation for this topic?
Yes