fix bug and add order confirm api