Skip to content
Web Monetization logo Web Monetization
GitHub

Widget tool

Add a payment widget to your site so visitors can send you a one-time payment. The widget appears to all visitors, even those with an active Web Monetization extension.

  • Your visitor must have a wallet address with a compatible wallet to send a payment using the widget.
  • If your site is monetized with multiple wallet addresses, only the address connected to the widget will receive one-time payments. You can change the address connected to the widget at any time.
  1. Enter your wallet address.
    Blank wallet address field and continue button
  2. Click Continue. A confirmation prompt appears.
    Confirmation prompt showing wallet address and confirm button
  3. Click Confirm. You’re directed to your wallet provider to sign in and confirm your ownership of the wallet address.
  1. Optionally change the label of a configuration by selecting the pencil icon and typing over the default.
    Screen with three tabs, all with default labels, and a pencil icon appearing next to the first label
  2. Expand the Content drop-down menu. Enter a title for the widget or choose from the suggested options.
    Panel showing suggested titles and a field to enter a custom title
  3. Enter the message to show to your visitors or use the default text. We suggest changing the message so that it’s tailored specifically to your audience.
    Panel with a checkbox to mark the message as visible and a blank field to enter a custom message
  4. Review your changes in the preview panel.
    Preview panel showing how the widget will appear with a custom title and message
  5. Click Done to collapse the Content section.
  1. Select the font and font size to use in the widget.
    Panel showing the font family drop-down menu and a size slider
  2. Select the background, text, and button colors to use.
    Panel showing background, text, and button color previews. Selecting a preview opens a menu with a paint can icon and a set of preselected colors to choose fromClick the paint can icon to enter a hex value or use the color picker.
    The color picker tool with a field for the hex value at the bottom
  3. Select the widget’s corner radius and position.
    Panel showing container corner radius options of no, light, and pill rounding and position options of left and right
  4. Review your changes in the preview panel.
    Preview panel showing how the widget will appear with a different button and title bar color, pill-rounded corners, and a left position
  1. Click Save and generate script.
    The save edits only and the save and generate script buttons side by side
  2. Add the script to your site. We recommend placing it just before the closing </body> tag. If you’re using a site management tool like WordPress, you’ll place the code in a script-type element.
    Example script
    <script id="wmt-widget-init-script"
    type="module"
    src="https://tools-cdn.webmonetization.org/widget.js"
    data-wallet-address="https://sandbox.ilp.link/rabeb"
    data-tag="version1">
    </script>
  3. Go to your site and check that the widget appears correctly.

You’re now ready to accept one-time payments. Remember that if your site is monetized with multiple wallet addresses that only the address connected to the widget receives one-time payments.

  1. Enter your wallet address.
    Blank wallet address field and continue button
  2. Click Continue. If the confirmation prompt appears, you must first confirm your ownership of the wallet address.
  3. Make your changes, then click Save edits only. Your script remains the same. There’s no need to update your site’s code.
  4. Refresh a page on your site that uses the configuration’s script to verify your changes are live.
  1. Enter your current wallet address.
    Blank wallet address field and continue button
  2. Click Continue to connect to your wallet. A list of your saved configurations appears.
  3. Select the configuration that you want to connect to a new wallet address.
    Panel listing previously saved configurations with the first configuration selected and the Add another wallet address button available
  4. Click Add another wallet address.
  5. Enter the new address in the wallet address field.
    Blank wallet address field and continue button
  6. Click Continue. A confirmation prompt appears.
    Confirmation prompt showing wallet address and confirm button
  7. Click Confirm. You’re directed to your wallet provider to sign in and confirm your ownership of the new wallet address.
  8. Click Save and generate script.
  9. Replace the existing script on your site with the newly generated script.

All payments through the widget will now be directed to the new wallet address.

Widget tool