[task] Fix some bugs and add payment thrift interface