Fixes #102 check for the attribute if the order must be cancelled or refunded