Fix for a few mistatements in the last chapter of the in-app payment doc.

users.writePayment should have been writePayment (no js Object), and the parameters
were wrong.  Also, it's always better to give a working example, even if the code
for these functions seems easy to guess.
The examples in the last chapter now are fully complete.