The implementation of Payment interface and some fixes
Merge remote-tracking branch 'origin/master'