monetization - speced/respec GitHub Wiki

monetization

Type: boolean | string | MonetizationOptions Default: ReSpec's payment pointer

Adds a Web Monetization <meta> payment pointer tag to the document. By default uses ReSpec's own payment pointer. Stripped from saved HTML unless removeOnSave: false is set.

Basic usage

var respecConfig = {
  monetization: "$wallet.example.com/my-wallet",
};
var respecConfig = {
  monetization: false,
};
var respecConfig = {
  monetization: {
    paymentPointer: "$wallet.example.com/my-wallet",
    removeOnSave: false,
  },
};

Options

Option Type Default Description
paymentPointer string ReSpec's pointer The payment pointer URL
removeOnSave boolean true Strip the meta tag when saving to static HTML

Notes

  • Web Monetization is an emerging payment standard for the web
  • Setting false disables monetization and removes the default ReSpec pointer
⚠️ **GitHub.com Fallback** ⚠️