Further coding on the payment protocol and messages exchange