Who it’s for
Payments for digital goods
A key or an access pass should go out right after the payment, not once you have checked the transfers. Your server is notified by webhook with your order number and delivers automatically.
- 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
An order is an invoice
Your site or bot creates an invoice with your order number in
order_id. A repeat request with the same number and amount returns the same invoice — never a second one. - 2
The payment page
The buyer opens
pay_url: an SBP QR code on desktop, one tap to the bank app on a phone. - 3
A webhook with the order number
As soon as the payment goes through, your server receives
invoice.paidwith yourorder_idandmetadata. - 4
The goods reach the buyer
Your server issues the key or access, and the buyer returns to your
return_url— the order page, say.
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. - Tie the key to
order_id: even if the event comes twice, there is no second key.
{
"amount": "1490.00",
"order_id": "K-20931",
"description": "Activation key",
"return_url": "https://shop.example/orders/K-20931",
"metadata": {
"sku": "key-pro"
}
}Webhook handler · Node.js
import express from "express";
import { verify } from "./verify.js"; // the function from /en/docs/#signature
import { db, keys } 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 keys.issueOnce(order_id, metadata.sku); // the key shows up on the order page
}
await db.markDone(eventId);
res.sendStatus(200);
});
app.listen(8080);Common questions
All questionsWhat can I sell?
Your own digital goods and services: keys, accounts, access passes, service subscriptions. The goods must be exactly what was promised — fraud and prohibited goods are not accepted. The full list is in the rules.
How do I avoid issuing a key twice?
A webhook may arrive again — deduplicate by the ExpressOplata-Event-Id header and tie the key to order_id. A repeat request with the same order_id and amount returns the invoice already created.
A buyer wants a refund — what then?
A refund is made with the button in the bot or through the API, only for the full invoice amount; the service fee is non-refundable. Put your refund terms into your terms of service — we review it and your privacy policy via the links in the request.
How long is a payment link valid?
24 hours by default. Set the lifetime with ttl_minutes when creating the invoice: from 5 minutes to 30 days.
Connect your project
Submit a request on the site or in the bot. The test key works right away, before the project is reviewed.