Blokbay payments API
Accept BTC, USDC, USDT, ETH and SOL on your own website (USDC on Ethereum, Polygon, BNB Chain, Base, Arbitrum, Solana; USDT on Ethereum, Polygon, BNB Chain, Arbitrum, Solana; ETH on Ethereum, Base, Arbitrum; SOL on Solana). 1% per payment, no fixed costs. Funds go from the buyer's wallet directly to yours in the same transaction: Blokbay never holds them. You receive 99% of the amount; the buyer sees only the amount.
Building or maintaining stores for clients? See For agencies and developers: how to set it up for a client, priority technical support and your presentation link.
Quick start
- Sign in at https://blokbay.com/login, add your wallet (EVM address and/or Bitcoin address) in Settings.
- Open Payments on your site in the dashboard: create your secret key (shown once) and set your webhook URL.
- From your server, create a payment and redirect your customer to its
url. When the payment is confirmed on the network you receivepayment.paidand the customer returns tourl_success.
Authentication
Every request carries your secret key: Authorization: Bearer sk_live_.... Call the API from your server only: requests sent by a browser (with an Origin header) are refused and there are no CORS headers. Keep the key secret; if it leaks, create a new one in the dashboard (the old one stops working at once). Base URL: https://blokbay.com/api/v1. JSON in, JSON out. The secret key is sk_live_ followed by 48 lowercase hexadecimal characters; the public key (pk_live_...) identifies your account in webhooks. OPTIONS returns 405.
Create a payment
POST /api/v1/payments
| Field | Type | |
|---|---|---|
amount | string or number | Required. Amount in currency with at most 2 decimals (JPY: no decimals), from the equivalent of 1.00 USD to the equivalent of 2000000000.00 USD. Bitcoin is offered from the equivalent of 100.00 USD. |
currency | string | Optional, default USD. One of USD, EUR, GBP, CHF, JPY, CAD, AUD, SGD, HKD, AED. With a currency other than USD the buyer pays in crypto at the current public exchange rate (Coinbase), locked when the buyer chooses the coin. |
reference | string | Your order number, up to 100 characters. Returned in the payment and in webhooks. |
description | string | Shown to the customer, up to 200 characters. |
url_success | URL | http(s). The customer returns here after the payment, with ?blokbay_payment=<id> added. |
url_cancel | URL | http(s). Link "Cancel and return to the site". |
customer_email | string | Optional: receipt to the customer. |
Send an Idempotency-Key header (up to 100 characters, for example your order number) to make retries safe: the same key returns the same payment with status 200 and the header Idempotent-Replayed: true, instead of creating a new one.
curl https://blokbay.com/api/v1/payments \
-H "Authorization: Bearer sk_live_..." \
-H "Content-Type: application/json" \
-H "Idempotency-Key: order-1001" \
-d '{"amount":"249.90","currency":"USD","reference":"1001","description":"Order 1001","url_success":"https://shop.example.com/thank-you","url_cancel":"https://shop.example.com/cart","customer_email":"buyer@example.com"}'
Response 201:
{
"id": "gp_k2x9...",
"object": "payment",
"status": "pending",
"amount": "249.90",
"currency": "EUR",
"amount_usd": "271.12",
"exchange_rate": "0.9217",
"rate_at": "2026-11-22T10:00:00.000Z",
"rate_source": "coinbase",
"rate_kind": "live",
"rate_locked": false,
"reference": "1001",
"description": "Order 1001",
"customer_email": null,
"url": "https://blokbay.com/pay/gp_k2x9...",
"test": false,
"link": null,
"network": null,
"coin": null,
"tx": null,
"transactions": [],
"created_at": "2026-11-22T10:00:00.000Z",
"expires_at": "2026-11-23T10:00:00.000Z",
"paid_at": null
}
Currencies and exchange rate
amount and currency are always returned as you created them (also in webhooks), so you can compare them with your order. amount_usd is the USD equivalent used for the payment and exchange_rate the rate used, in units of currency per 1 USD (rate_at, rate_source). Before the buyer chooses a coin they are an estimate at the current rate (rate_locked: false); when the buyer chooses the coin the rate is locked together with the crypto amount (rate_locked: true) for the same windows as the price. With USD, amount_usd equals amount, exchange_rate is "1" and rate_locked is true. The rate is read live from Coinbase; if Coinbase does not answer, the latest known rate is used (rate_kind: live, stored or bundled, with rate_at), so a payment is never refused because of the exchange rate. The Idempotency-Key is scoped to the currency: the same key with another currency creates another payment.
Redirect the customer to url. The payment page shows your store name and logo. A payment can be started for 24 hours; after a coin is chosen, the price is held for 2 hours (stablecoins), 15 minutes (ETH) or 3 hours (Bitcoin; once the first transfer is seen the buyer has 6 hours to send the second one at the locked price, then the payment expires). Stablecoins can also be paid without connecting a wallet, from any wallet or exchange: address, exact amount and QR code, in two exact transfers with the same windows as Bitcoin; the buyer can change coin or network until the first transfer is seen.
Retrieve a payment
GET /api/v1/payments/:id, or GET /api/v1/payments?reference=1001 (list, newest first, limit up to 50).
curl https://blokbay.com/api/v1/payments/gp_k2x9... -H "Authorization: Bearer sk_live_..."
status: pending, paid, expired. When paid: network (Ethereum, Polygon, Base, Arbitrum, BNB Chain, Bitcoin), coin (USDC, USDT, ETH, BTC), tx (transaction hash) and paid_at. With Bitcoin, and with stablecoins paid by address or QR code, the buyer makes two exact transfers: both are in transactions, tx is the second one. A payment that arrives after expired is still recorded as paid (the funds are already in your wallet): treat payment.paid as final.
Webhooks
Blokbay sends POST requests to your webhook URL (https, public address) with these events:
payment.paid: the payment is confirmed on the network (stablecoins and ETH: the contract event with the right order, wallet and amount; Bitcoin: both transfers with 2 confirmations; stablecoins paid by address or QR code: both token transfers, confirmed on the network).payment.expired: the payment was not made in time (sent by the scheduler, which runs every 10 minutes).ping: test event from the dashboard (one attempt, no retries;datais{"message":"Test event from Blokbay","url":"..."}).
Headers of every request: Content-Type: application/json, User-Agent: Blokbay-Webhooks/1.0, Blokbay-Event-Id, Blokbay-Event-Type, Blokbay-Signature. The webhook URL must be https on a public address (no IP address, localhost or private network).
POST /your-webhook
Content-Type: application/json
Blokbay-Event-Id: evt_...
Blokbay-Event-Type: payment.paid
Blokbay-Signature: t=1795320000,v1=5f2b...
{"id":"evt_...","type":"payment.paid","created":1795320000,"account":"pk_live_...","data":{ ...payment... }}
Verify the signature: compute HMAC-SHA256 of <t>.<raw body> with your signing secret (whsec_..., in the dashboard) and compare it with v1 in constant time; reject timestamps older than 5 minutes. Answer with any 2xx within 10 seconds. Otherwise Blokbay retries after 1 minute, 5 minutes, 30 minutes, 2, 6, 12, 24 and 24 hours (9 attempts). Redirects are not followed. The same event can arrive more than once: use Blokbay-Event-Id (or the payment id) to process it only once, and check account against your public key.
// Node.js (use the raw request body, before any JSON parsing)
const crypto = require('crypto');
function verifyBlokbay(rawBody, header, secret) {
const p = Object.fromEntries(String(header || '').split(',').map((x) => x.trim().split('=')));
const t = Number(p.t);
if (!Number.isFinite(t) || Math.abs(Date.now() / 1000 - t) > 300 || !p.v1) return false;
const mac = crypto.createHmac('sha256', secret).update(p.t + '.' + rawBody).digest('hex');
const a = Buffer.from(mac), b = Buffer.from(p.v1);
return a.length === b.length && crypto.timingSafeEqual(a, b);
}
// PHP: $raw = file_get_contents('php://input'); $header = $_SERVER['HTTP_BLOKBAY_SIGNATURE'] ?? '';
function blokbay_verify($raw, $header, $secret) {
$p = [];
foreach (explode(',', $header) as $kv) { $x = explode('=', trim($kv), 2); if (count($x) === 2) $p[$x[0]] = $x[1]; }
if (!isset($p['t'], $p['v1']) || abs(time() - (int)$p['t']) > 300) return false;
return hash_equals(hash_hmac('sha256', $p['t'] . '.' . $raw, $secret), $p['v1']);
}
Errors and limits
Errors return {"error":"code","message":"..."} with status 400 (invalid field: amount, currency, reference, description, url_success, url_cancel, customer_email, bad_json), 401 (unauthorized), 403 (browser_not_allowed, account_disabled), 404, 409 (no_wallet), 429 (rate_limited, with Retry-After). Limits: 120 requests per minute per account, 30 new payments per minute; 20 failed authentications per IP in 10 minutes. Payment page: 20 payment starts per IP per hour, 10 payments opened from payment links per IP per hour. 503 unavailable when payments are switched off.
Without code: payment links and buttons
In the dashboard, create a payment link for a fixed amount (https://blokbay.com/l/pl_...) and share it on any site, in an email or in a chat, or copy the HTML of the Pay with crypto button. Each customer who opens the link and chooses a coin gets a new payment, listed in the dashboard and sent to your webhook with link and reference set to the link id. Up to 200 active links.
Plugins
Free plugins, each with settings for your keys, a redirect to the payment page, the order marked paid by the signed webhook and checked again when the customer returns.
Settings in every plugin: public key (pk_live_...), secret API key (sk_live_...) and webhook signing secret (whsec_...), from the dashboard (Payments on your site). Check a download with shasum -a 256 <file> (macOS) or sha256sum <file> (Linux).
- WooCommerce (WordPress 6.6+, WooCommerce 9.0+):
blokbay-woocommerce.zip, v1.2.0, 20552 bytes, SHA-256291ab7c191b17583739223e2830152c4f969008cb3810c8233036b8743ebcd23, webhook URLhttps://your-shop/?wc-api=blokbay.- Upload the zip in Plugins > Add New Plugin > Upload Plugin.
- Open WooCommerce > Settings > Payments > Blokbay and paste the public key (pk_live_...), secret API key (sk_live_...) and webhook signing secret (whsec_...) from the Blokbay dashboard (Payments on your site).
- In the Blokbay dashboard, set the webhook URL to https://your-shop/?wc-api=blokbay (with your shop domain).
- PrestaShop (PrestaShop 1.7.6+, 8.x):
blokbay-prestashop.zip, v1.2.0, 71726 bytes, SHA-2563bbf1c90d942a274f78f1f5e50e4c26d97442b044982b25b33f94a056ef2fac8, webhook URLhttps://your-shop/module/blokbay/webhook.- Upload the zip in Modules > Module Manager > Upload a module.
- Open Modules > Module Manager > Blokbay > Configure and paste the public key (pk_live_...), secret API key (sk_live_...) and webhook signing secret (whsec_...) from the Blokbay dashboard (Payments on your site).
- In the Blokbay dashboard, set the webhook URL to https://your-shop/module/blokbay/webhook (with your shop domain).
- Magento 2 (Magento Open Source / Adobe Commerce 2.4.6+):
blokbay-magento2.zip, v1.2.0, 22031 bytes, SHA-2564afa4a6292ffb6ff2e661aa105440a42c8f08a875c1359a60176695aaaf32a7d, webhook URLhttps://your-shop/blokbay/webhook/index.- Extract the zip into app/code/ of the shop, then run: bin/magento module:enable Blokbay_Payment && bin/magento setup:upgrade.
- Open Stores > Configuration > Sales > Payment Methods > Blokbay and paste the public key (pk_live_...), secret API key (sk_live_...) and webhook signing secret (whsec_...) from the Blokbay dashboard (Payments on your site).
- In the Blokbay dashboard, set the webhook URL to https://your-shop/blokbay/webhook/index (with your shop domain).
- Shopware 6 (Shopware 6.7):
blokbay-shopware.zip, v1.2.0, 21634 bytes, SHA-2568edda8efa52c51b14a58a299693b359058eda0773758e875a58b431573e1ab6a, webhook URLhttps://your-shop/api/_action/blokbay/webhook.- Upload the zip in Extensions > My extensions > Upload extension.
- Open Extensions > My extensions > Blokbay > Configure and paste the public key (pk_live_...), secret API key (sk_live_...) and webhook signing secret (whsec_...) from the Blokbay dashboard (Payments on your site).
- In the Blokbay dashboard, set the webhook URL to https://your-shop/api/_action/blokbay/webhook (with your shop domain).
- OpenCart 4 (OpenCart 4.0.2.x, 4.1.x):
blokbay.ocmod.zip, v1.2.0, 19346 bytes, SHA-256cf7adae5ee7baddc77f14dc92bccd6a39557c288bb24aede6a239925122a7d2d, webhook URLhttps://your-shop/index.php?route=extension/blokbay/payment/blokbay.webhook. Keep the file nameblokbay.ocmod.zip: OpenCart 4 reads the extension code from it.- Upload the zip in Extensions > Installer.
- Open Extensions > Extensions > Payments > Blokbay and paste the public key (pk_live_...), secret API key (sk_live_...) and webhook signing secret (whsec_...) from the Blokbay dashboard (Payments on your site).
- In the Blokbay dashboard, set the webhook URL to https://your-shop/index.php?route=extension/blokbay/payment/blokbay.webhook (with your shop domain).
- OpenCart 3 (OpenCart 3.0.x):
blokbay-opencart3.ocmod.zip, v1.2.0, 20078 bytes, SHA-256d599fe36cd77505c3a660bac497bcbbb28ee9a08ea8b5c1bf1ae8c80ec0a6cfb, webhook URLhttps://your-shop/index.php?route=extension/payment/blokbay/webhook.- Upload the zip in Extensions > Installer.
- Open Extensions > Extensions > Payments > Blokbay and paste the public key (pk_live_...), secret API key (sk_live_...) and webhook signing secret (whsec_...) from the Blokbay dashboard (Payments on your site).
- In the Blokbay dashboard, set the webhook URL to https://your-shop/index.php?route=extension/payment/blokbay/webhook (with your shop domain).
- EC-CUBE (EC-CUBE 4.2, 4.3):
blokbay-eccube.zip, v1.2.0, 26720 bytes, SHA-256d1eef0f6c4a686cf611ae698abcf4c99d2b8ef2f2065e77cf2a1385539975625, webhook URLhttps://your-shop/blokbay_payment/webhook.- Upload the zip in Owner's Store > Plugin > Installed plugins > Upload.
- Open Owner's Store > Plugin > Installed plugins > Blokbay > Settings and paste the public key (pk_live_...), secret API key (sk_live_...) and webhook signing secret (whsec_...) from the Blokbay dashboard (Payments on your site).
- In the Blokbay dashboard, set the webhook URL to https://your-shop/blokbay_payment/webhook (with your shop domain).
- Odoo 17 (Odoo 17.0 (Community, Enterprise)):
blokbay-odoo17.zip, v1.2.0, 56956 bytes, SHA-256a4e085d466638be7e367b2968afddaafa852cce51a3db40e907e993797fabca0, webhook URLhttps://your-odoo/payment/blokbay/webhook.- Extract the zip (folder payment_blokbay) into a folder of the Odoo addons_path, restart Odoo, update the apps list and install the Blokbay module.
- Open Website > Configuration > Payment Providers > Blokbay and paste the public key (pk_live_...), secret API key (sk_live_...) and webhook signing secret (whsec_...) from the Blokbay dashboard (Payments on your site).
- In the Blokbay dashboard, set the webhook URL to https://your-odoo/payment/blokbay/webhook (with your shop domain).
- Odoo 18 (Odoo 18.0 (Community, Enterprise)):
blokbay-odoo18.zip, v1.2.0, 56956 bytes, SHA-256610a40541b0c8258fe06a88731451325893a59be0aea270ed78dcfea60bd9d8c, webhook URLhttps://your-odoo/payment/blokbay/webhook.- Extract the zip (folder payment_blokbay) into a folder of the Odoo addons_path, restart Odoo, update the apps list and install the Blokbay module.
- Open Website > Configuration > Payment Providers > Blokbay and paste the public key (pk_live_...), secret API key (sk_live_...) and webhook signing secret (whsec_...) from the Blokbay dashboard (Payments on your site).
- In the Blokbay dashboard, set the webhook URL to https://your-odoo/payment/blokbay/webhook (with your shop domain).
- Shopify: custom app installed one store at a time, on request (mail@blokbay.com). Ecwid: coming soon. WordPress.org directory: under review; download the WooCommerce plugin from this page.
Step by step installation for each platform: download the plugin.
Shopify
Shopify does not let other services add a payment method to its checkout without its approval, so the integration is a link: add a Pay with crypto link or button (a payment link from the dashboard) to the product page, or create the payment from an app or a flow and show the link on the thank-you page or in the order email. The Shopify order is not updated automatically: check the payment in the dashboard (or with the webhook) and mark the order as paid in Shopify yourself. You can also use a "manual payment method" in Shopify for the order and then send the link.
Test it
There is no test mode with fake money: in the dashboard, Create a 1 $ test payment creates a real payment to your own wallet (marked "test": true). Pay it on Polygon or Base, where the network cost is a few cents, to see the whole flow, webhook included.
Smart contracts
LuxSplit: public split contracts with no owner that cannot be modified and never hold funds. Fee = net x feeBps / 10000: the gateway contract has feeBps 101 (1.00% of the amount paid), the store contract feeBps 309 (3.00%). With USDC and USDT the customer's wallet first asks for an approval of the token, then for the payment; with ETH there is only the payment.
| Network | Chain ID | Gateway contract | Coins |
|---|---|---|---|
| Ethereum | 1 | 0xd4b637cC81D5B5115Cd0204A9ba6B60474F05e31 | USDC, USDT, ETH |
| Polygon | 137 | 0xd4b637cC81D5B5115Cd0204A9ba6B60474F05e31 | USDC, USDT |
| BNB Chain | 56 | 0xd4b637cC81D5B5115Cd0204A9ba6B60474F05e31 | USDT, USDC |
| Base | 8453 | 0xd4b637cC81D5B5115Cd0204A9ba6B60474F05e31 | USDC, ETH |
| Arbitrum | 42161 | 0xd4b637cC81D5B5115Cd0204A9ba6B60474F05e31 | USDC, USDT, ETH |
Store contract (Blokbay stores, not the gateway): 0x3A55be98f545305dD2a54332925f966a20067735, same address on Ethereum, Polygon, BNB Chain, Base, Arbitrum. Bitcoin has no contract: two exact transfers.
USDC (issued by Circle, mint EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v) and USDT (issued by Tether, mint Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB) on Solana: one transaction with two token transfers, to the seller and to the platform, that succeed or fail together; no smart contract. The buyer signs it in a Solana wallet (Phantom, Solflare, Backpack) or with a Solana Pay QR code and pays the network cost in SOL (a fraction of a cent, plus a network deposit of about 0.0015 SOL when a token account is opened for the first time). For USDC and USDT on Solana: the finalized transaction with the reference key of the payment and both token transfers (seller and platform) with the right amounts.
SOL on Solana: the same single transaction with two SOL transfers, to the seller and to the platform, signed in a Solana wallet or with a Solana Pay QR code; or two exact transfers from any wallet or exchange. The SOL price is locked when the coin is chosen.
Responsibilities
Blokbay is a technical service and never holds funds. You remain the seller: you are responsible for your website, your products and your obligations towards your customers. Crypto payments cannot be reversed by Blokbay.
Minimum the equivalent of 1.00 USD; Bitcoin from the equivalent of 100.00 USD. Currencies: USD, EUR, GBP, CHF, JPY, CAD, AUD, SGD, HKD, AED.