Update order payment amount before paid.
Add spec and some cs fixes.
Merge pull request #1246 from kayue/patch/update-order-payment

Update order payment amount before paid.