You can use any of the verifiers, or host one yourself, but the easiest way to do this is to use the one hosted by the WebMonetization.org website themselves.
Second, the actual exclusive content have to be encoded, so it will only be accessible after positive verification - you can do it using the Exclusive Content Generator provided by the very same website as well:
As you can see, all you have to enter is your original payment pointer, and the secret message that will be encrypted. In the case of Forest Cuties, that’s a JSON
object with details of the three cards being unlocked: thier description, image urls, etc.
After clicking Generate you can paste the code into your HTML
file. Here’s how the whole thing look like:
There’s also a link to the script that does all the magic. You can apply all the code, and put everything in your index.html
: monetization meta tag with verifier url, encrypted content, and the script that does the decryption. As soon as the visitor is confirmed as a monetized user, the encrypted message will appear within the exclusiveContent
div. Then, a JavaScript code can pick it up, treat as a JSON
object and read the data, which ultimately unlocks the extra cards for the player.
This is something we’ve started exploring - the whole concept of NFTs (Non-Fungible Tokens) and Web 3 games on a blockchain. We’ve got only positive memories from having the Decentralized category in Gamedev.js Jam 2021, where both Outplay Games and Paras Marketplace partnered with our event.
Now, thanks to their efforts again, we can offer you a unique Forest Cuties NFT! It can be bought for 40 NEAR, and there’s only 60 tokens total - make sure to grab yours! You can support us, and in exchange the game will offer three in-game cards only for those who own the NFT.
This should be implemented in the next couple of weeks, and will be announced through our social media channels. In the meantime, have you noticed that the Flip Flop game, which actually won Gamedev.js Jam 2021, have an NFT as well?
I think it all went well, and I’m happy we were able to publish the game, implement Web Monetization features, and offer the NFT. After all it is a very simple game about matching the same pictures, but I do hope you’ll like the card collecting aspect of it, especially since the animals are indeed cute, and you can learn some cool facts about them in the process.