Fixing posting payment bugs

Fixing posting payment bugs