If Payment fails then orders should placed on COD Automatically

Can anyone know how can we create a flow with flow app, if customers fails to pay with credit debit card payment it should be redirect to COD payment and order should place on COD

I think you need to provide more detail about how a customer would fail to pay with a credit card. For example, is this a B2B order? Also what does “redirect to COD” mean?

You could check if an order is paid or not using “order / fullyPaid”, but I’m not sure if that fully solves your problem or not.