Crypto payments for Remnawave
Accept USDT for your Remnawave VPN panel. This small service creates a SnapEX Pay invoice for a plan and sends your customer to the hosted payment page. When SnapEX Pay confirms the payment, it creates the Remnawave user, or extends an existing one, and gives you the subscription URL. It runs next to your panel in Docker, and your shop backend or Telegram bot drives it through an HTTP API with two authenticated endpoints.
What it does
- Payment page hosted by SnapEX Pay: USDT on TRON (TRC20), Ethereum (ERC20), BNB Chain (BEP20), Solana, TON or another network; other coins appear when a swap route is available for the amount.
- After payment it creates a Remnawave user (ACTIVE, with expiry, traffic limit, optional Telegram ID and internal squads) or extends an existing one. Renewals add the plan's days to whichever is later: now or the current expiry.
- Webhooks are checked with HMAC-SHA256 and a 5-minute window; the invoice status is then read back from the SnapEX Pay API, and only a paid invoice provisions the user.
- Idempotent: if the same webhook arrives twice, even at the same moment, the user is provisioned only once.
- Plans in one environment variable; data is one SQLite file, no external database.
- Coins: USDT (TRC20, ERC20, BEP20) on invoices of any amount; BTC, ETH, LTC and TRX also on smaller invoices when the network fee allows; other coins on invoices from $8.
- On request: besides crypto, we can turn on payments in Russian rubles by QR code (Russia) and Alipay for your account. Write to us in the chat on this site.
Install
- In Remnawave go to Remnawave Settings → API Tokens and create a token (not the admin login JWT — the panel rejects it for API calls). Copy the UUIDs of the internal squads new users should get.
- In the SnapEX Pay merchant cabinet create an API key with the
invoices.readandinvoices.writescopes. - Download and unpack the archive, run
cp .env.example .envand setSNAPEX_API_KEY,REMNAWAVE_URL,REMNAWAVE_TOKEN,REMNAWAVE_SQUADSand a long randomAPI_TOKEN. - Start it:
docker compose up -d, checkcurl -s http://127.0.0.1:8080/health, and put it behind your HTTPS reverse proxy. - In the cabinet → Developers set the webhook URL to
https://<your service>/webhook, put thewhsec_…secret (shown once, when the URL is first saved) intoSNAPEX_WEBHOOK_SECRETand restart. - From your backend or bot call
POST /v1/checkoutwithAuthorization: Bearer <API_TOKEN>, sendpay_urlto the customer and checkGET /v1/orders/{invoice_id}for the subscription URL.
Settings
| SNAPEX_API_KEY, SNAPEX_WEBHOOK_SECRET | Merchant API key (invoices.read, invoices.write) and the webhook signing secret (whsec_…). |
|---|---|
| SNAPEX_ENVIRONMENT, SNAPEX_FEE_ON | live or test (test invoices confirm without real funds); who pays the service fee — merchant or customer. |
| REMNAWAVE_URL, REMNAWAVE_TOKEN | Panel URL (or http://remnawave:3000 on a shared Docker network) and the Remnawave API token. |
| REMNAWAVE_SQUADS | Internal squad UUIDs for new users. A user with no squad has no inbounds, so their subscription would be empty. |
| API_TOKEN | Bearer token your shop or bot sends to /v1/checkout and /v1/orders/…. |
| PLANS | id:days:usd:traffic_bytes, comma-separated; 0 bytes = unlimited. |
| SNAPEX_PARTNER_ID | Optional: the Partner ID of the integrator who set the module up (SnapEX Pay referral program). Leave empty if you set it up yourself. |
Questions
Which Remnawave versions are supported?
Remnawave 2.2 or newer.
Why is the new user's subscription empty?
A user with no internal squad has no inbounds. Put the squad UUIDs for new users into REMNAWAVE_SQUADS; existing users keep their squads.
How do renewals work?
Payment for an existing username adds the plan's days to whichever is later: now or the user's current expiry. The traffic limit is set to the new plan's value.
Can one payment create a user twice?
No. Even if the same webhook arrives twice at the same moment, the user is provisioned only once.
Is there a ready Telegram bot?
Yes, a separate SnapEX Pay Telegram bot for Marzban, 3x-ui and Remnawave. This service fits when you already have your own bot or shop.
Other integrations
-
WHMCS
Hosting billing
-
BILLmanager Hosting billing
-
FOSSBilling Hosting billing
-
Paymenter
Hosting billing
- Blesta Hosting billing
- WISECP Hosting billing
- RootPanel Hosting billing
-
WooCommerce
Online stores
-
CS-Cart
Online stores
- Xboard / V2Board VPN panels
-
Marzban VPN panels
-
3x-ui
VPN panels
-
Telegram VPN bot VPN panels
-
n8n Automation
Ready to accept crypto?
Create a merchant account, get an API key and connect the module. 1% per payment, no monthly fee.