Set payment total.

Payment amount was incorrect.

This fix #1160.