The type of message is wrong for payment processing

The messages generated by the payment process should be of type 'out' not 'in'.

issue4305
review10611002
Add test on message type and state

issue4305
review10611002