Add filter to control automatic cancel of unpaid order

This allows plugins to control whether an unpaid order should be automatically cancelled or not.