added raise exception in payment rules but need to handle exception