refine for client ensure payment