Important Notes
Full disclosure: The author received a grant to support the writing of this book, as well as two other JavaScript books, from Grant for the Web, among whose major contributors is Coil (which as of 8/21 is the only web monetization provider available). Neither Grant for the Web nor Coil nor any of their members, employees, collaborators, program team, or anyone else had any say in the content or editing of this book. Basically the author wrote it, his normal editor edited it and the author deserves all praise, blame, and accountability for its contents.
**It’s important to note that the monetization specification, while available and working, is still in flux and may change from what’s laid out here. The specification seems to be mature enough that little is likely to change in the JavaScript API, even if there are some changes under the hood. That said, there are no guarantees. I will try to keep this book as up-to-date as possible.