fix the coding issue about payment