Who it’s for
Payments for VPN and hosting
A client paid at 3 a.m. — access should be extended right then, not in the morning. Your server is notified by webhook and extends it automatically; if it doesn’t respond, we retry.
- No company required
- 3% fee
- Payouts in USDT
How it works
From the “Pay” button to the delivered purchase — with no manual checking of transfers.
- 1
A renewal invoice
When the term is about to end, your bot or client area issues a new invoice:
metadataholds the client and how many days to add. - 2
The client pays via SBP
In a Telegram mini app or on the payment page: a QR code on desktop, one tap to the bank app on a phone.
- 3
The
invoice.paidwebhookYour server checks the signature and extends access — or issues a new key and config.
- 4
If your server doesn’t respond
We retry after 1, 5 and 30 minutes, 2 and 12 hours and onwards — for up to three days. The bot shows the delivery history.
What your server receives
An invoice is created with one API request, and your server is notified by webhook. The sample is in Node.js.
order_idandmetadatafrom the request come back inevent.data— use them to deliver the order. The buyer never seesmetadata.- The signature is checked by
verify(token, header, body)— the docs have it in four languages. Test events are signed with the test key, live ones with the live key. "test": truemeans a test-mode payment: no money moved, deliver nothing.- The same event may arrive twice — deduplicate by
ExpressOplata-Event-Id. Respond with2xxwithin 10 seconds, or the delivery is retried. - A renewal invoice can be issued in advance: its lifetime is set with
ttl_minutes, up to 30 days.
{
"amount": "890.00",
"order_id": "u7781-renew-4",
"description": "VPN, 3 months",
"ttl_minutes": 4320,
"metadata": {
"user": "u7781",
"days": 90
}
}Webhook handler · Node.js
import express from "express";
import { verify } from "./verify.js"; // the function from /en/docs/#signature
import { db, vpn } from "./app.js"; // your code
const app = express();
app.post("/hooks/expressoplata", express.raw({ type: "application/json" }), async (req, res) => {
const event = JSON.parse(req.body); // req.body is the raw bytes the signature covers
const token = event.test ? process.env.EO_TEST_TOKEN : process.env.EO_TOKEN;
if (!verify(token, req.get("ExpressOplata-Signature") ?? "", req.body)) return res.sendStatus(401);
if (event.type !== "invoice.paid") return res.sendStatus(200);
const eventId = req.get("ExpressOplata-Event-Id");
if (await db.isDone(eventId)) return res.sendStatus(200); // a repeat of the same event
const { order_id, metadata } = event.data;
if (event.test) {
console.log("a test payment: the path works, deliver nothing", order_id);
} else {
await vpn.extend(metadata.user, metadata.days); // the days add to the current term
}
await db.markDone(eventId);
res.sendStatus(200);
});
app.listen(8080);Common questions
All questionsIs there auto-renewal?
There are no automatic charges: every period is paid with an invoice of its own. Your bot or client area sends it in advance — the client only pays, and your server extends access on the webhook.
What if my server was down during the payment?
The payment is not lost: the webhook is retried for up to three days, and the bot has a “send again” button. You can always get the invoice status with GET /v1/invoices/{id}.
Can I test it all without money?
Yes. The test key works right away, before review: create an invoice and complete it with a simulate request or a button on the form — you get invoice.paid with "test": true. More in the docs.
Do you really accept VPN and hosting projects?
Yes, the rules name them among those we connect. The general bans apply here too — see what is forbidden. ExpressHost already accepts payments through ExpressOplata.
Connect your project
Submit a request on the site or in the bot. The test key works right away, before the project is reviewed.