Set payment total.
Reuse variable.
Merge pull request #1162 from kayue/patch-11

Set payment total.