make pay/close dialog have a "message" field

Updated RPC call parameters + Call 2nd RPC on success of 1st RPC and then close dialog and empty div on Succes.