Writing payment straight after updating Status, avoids issues with onCap...

...tured

Same issue as 647dfb35efe5a3fa301dcc47076de79740c96e12