Skip to content
Marcos Cáceres edited this page Aug 9, 2021 · 8 revisions

monetization

Adds a "monetization" <meta> tag to enable Web Monetization.

This options takes either a boolean, a string (a payment pointer), or an object with a paymentPointer (string) and removeOnSave (boolean) property.

By default, the meta tag is added only to "live" documents, and is removed from generated static documents.

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

If you do not explicitly disable this feature or set a different payment pointer, it uses ReSpec's payment pointer by default.

To disable web monetization entirely:

var respecConfig = {
  monetization: false,
};

To keep the payment pointer in a generated snapshot:

var respecConfig = {
  monetization: {
     paymentPointer: "$customPointer",
     removeOnSave: false,
  }
};

Guides

Configuration options

W3C Configuration options

Linter rules

Internal properties

Handled by ReSpec for you.

Special <section> IDs

HTML elements

Custom Elements

WebIDL

HTML attributes

CSS Classes

Special properties

Clone this wiki locally