Add comment and fix bug of unsuccessful payment