











Auto-identifikator (VS) za više plaćanja 
Promenljivi simbol — referenca za praćenje uplate. Da pratimo uplatu, dodajemo 4 cifre na kraj iznosa; na primer, u USDT na mreži Tron ima 6 mesta posle tačke. Koriste se prve dve, npr. 10.55 (10 dolara 55 centi), a sa promenljivim simbolom biće 10.550001. Zapravo je to 1000 puta manje od centa — kupac ne preplaćuje. Ali uplatu možete pratiti.
Kada u Merchant režimu potrošite do 10 000 kodova, automatski se dodaje nova USDT adresa za narednih 10 000 kodova — i tako beskonačno. Tako možete opsluživati čak i veliku prodavnicu sa hiljadama porudžbina dnevno.
Inače biste morali da koristite posebnu adresu za svaku uplatu. A zatim da platite mrežnu proviziju za prikupljanje svih sredstava na jednu adresu. Na primer, ako imate 100 uplata na 100 adresa, da biste prikupili sredstva na jednu adresu (za razmenu itd.), morali biste da platite proviziju 100 puta (0.9$ po putu). Ovo smo zaobišli elegantnim referentnim brojevima opisanim iznad.
app.post('/mi_webhook_subscription/', bodyParser.json(), (request, response) => {
try {
let eventObj = request.body;
const signature = request.headers['mitilena-signature'];
if (signature === endpointSecretMitilenaNewOur) {
if (!eventObj.statusObj) {
return response.status(400).send('Error, no object.');
}
let hookObj = eventObj.statusObj;
...Your private secret key:
You should only process requests to your webhook that contain this key.
statusObj = {
mitilenaInvoiceId: 'auto-683dc5-03f2c0-e3f06a-example-string', // never undefined
yourPaymentId: 'stringOrNull', // never undefined
yourProductName: 'stringOrNull', // never undefined
yourProductId: 'stringOrNull', // never undefined
secretKey: 'your-unique-secret-key', // never undefined,
stableCoinAmount: 0, // number, never undefined
stableCoinSymbol: 'USDT', // never undefined
stableCoinBlockchain: 'tether-trc20', // never undefined
stableCoinContractAddress: 'TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t', // string | null
localCurrencyAmount: 0, // number, never undefined
localCurrencyCode: 'EUR', /// ISO 4217 currency code, never undefined
wasPaid: true, // true | false, never undefined
}
/* payment time === webhook call time.
We try to send a request immediately after the payment is detected
!!!
If the secret key is incorrect or at least one field is
undefined - this is a fake request, do not set the order
as paid in your system! */