Record failed woocommerce orders

Would it be possible to record failed woocomerce orders and then create a filter to block the IP ?