Remove Order On Cc Fail

cs-cart storing fail attemp orders with status F

how can i remove them ?

i try with this hook. checkout_place_orders_pre_route

getting a lot of errors. anyway ? i dont want store and see fail order attemps.

thank you

Change_order_status hook.

Note, that if you delete failed order, its number will not be used for next successful order.

Its not problem mate. If member leave checkout failed order will stay there