add thread.sleep() method on Pay.cancel