Neetbux

Neetbux is a 🤷‍♂️

A simple payment button for accepting payments with Bitcoin SV (BSV). Resembles Money Button and RelayX with the slight twist that Neetbux actually functions as intended. Neetbux uses BSV as the base currency, but to the user-facing side a fiat currency, such as U.S. Dollar (USD), can be used.

How to create a payment button?

A Neetbux payment button needs two components:

  1. a certain JavaScript <script> tag,
  2. and a special HTML tag, which looks like: <neetbux>.

A more in-depth description of the whole affair is written below, but there's also a payment button generator.

There's also a set of demo buttons.


1/2: The JavaScript

First copy and paste the JavaScript tag shown below to your website.

<script src="https://neetbux.net/neetbux.js" defer></script>

This tag loads a special code library, written in JavaScript language, which is required for Neetbux to function.

Couple tips:

2/2: The HTML

Copy and paste this HTML tag to your website, but modify it by setting the right amount (as a positive number), 3-letter currency code (such as eur or usd), and of course the right Bitcoin SV address as the payment recipient.

<neetbux data-amount="0.01" data-currency="eur" data-to="1LuJ4Gn9YaFooLoJZHZojGNNsEkZey63A"></neetbux>

This HTML tag is called a Web component. It's a custom tag used specifically by Neetbux. This tag is dynamically replaced by a payment button when the Web page is loaded.

Couple more tips:

Attributes:


How to keep track of payments?

After a successful payment Neetbux sends with JavaScript a JSON message using postMessage* method. That message can be listened using, for example, this simple JavaScript snippet:

<script>
    window.addEventListener('message',message);

    function message(contents) {
        if (contents.origin === 'https://neetbux.net') {
            console.info(contents.data);
        }
    }
</script>

The message itself contains useful information for bookkeeping and other purposes:

{
    "txid": "fd8f05a6a5a6d474a2672fc875b26d68ef7be27de0427c3a57700a04d9b47c2b",
    "status": "success",
    "timestamp": "2024-03-17T02:23:40+02:00",
    "gross_amount": 0.0100,
    "fee_amount": 0,
    "currency": "eur",
    "to": "1LuJ4Gn9YaFooLoJZHZojGNNsEkZey63A"
}

*) postMessage documentation: developer.mozilla.org/en-US/docs/Web/API/Window/postMessage


Supported currency codes


Payment button UI

Styling of the payment button is currently not documented nor supported by Neetbux.

CSS is used to detect if the user's device prefers light or dark theme. The payment button uses by default light theme.


Terms of service

Neetbux is provided as as-is.