brainblocks - instant, free, easy raiblocks checkout


1. Try the button

Click the button and try sending 0.001 XRB to the address


2. Copy and paste the code

Place the code somewhere on your site, and make sure to handle successful payments

<div id="raiblocks-button"></div>

<script src="https://brainblocks.io/brainblocks.min.js"></script>

<script>
    // Render the RaiBlocks button

    brainblocks.Button.render({

        // Pass in payment options

        payment: {
            destination: 'xrb_3or7imutcewtz14borpxhr3tqhhy58fuaq6xn45h8h55hb4nmmtjg5r68h7w',
            currency:    'rai',
            amount:      '1000'
        },

        // Handle successful payments

        onPayment: function(data) {
            console.log('Payment successful!', data.token);
        }

    }, '#raiblocks-button');
</script>

Supported currencies:

aud, brl, cad, chf, clp, cny, czk, dkk, eur, gbp, hkd, huf, idr, ils, inr, jpy, krw, mxn, myr, nok, nzd, php, pkr, pln, rub, sek, sgd, thb, try, usd, twd, zar


3. Verify transaction

Call the brainblocks api to verify the transaction. Make sure the transaction is fulfilled, the amount, currency and destination match what you expect, and the token is unique (to avoid replays).

> curl https://brainblocks.io/api/session/<token>/verify

{
    "token":        "ZXlKaGJHY...",
    "destination":  "xrb_164xa...",
    "currency":     "rai",
    "amount":       "1000",
    "amount_rai":   1000,
    "received_rai": 1000,
    "fulfilled":    true
}

Bugs / support requests | Read more about BrainBlocks | WooCommerce Plugin
Donate: xrb_164xaa1ojy6qmq9e8t94mz8izr4mkf1sojb6xrmstru5jsif48g5kegcqg7y

Built by Daniel Brain and Jill Robinson!