











Bir nechta to‘lovlar uchun avtoidentifikator (VS) 
O‘zgaruvchan belgi — to‘lovni kuzatish uchun referens. To‘lovni kuzatish uchun summa oxiriga 4 ta raqam qo‘shamiz; masalan, Tron tarmog‘idagi USDT da nuqtadan keyin 6 xona. Dastlabki ikkitasi ishlatiladi, masalan 10.55 (10 dollar 55 sent), o‘zgaruvchan belgi bilan 10.550001 bo‘ladi. Aslida bu bir sentdan 1000 marta kichik — xaridor ortiqcha to‘lamaydi. Lekin to‘lovni kuzatish mumkin.
Merchant rejimida 10 000 tagacha kod ishlatib bo‘lgach, keyingi 10 000 kod uchun yangi USDT manzil avtomatik qo‘shiladi — va shu tarzda cheksiz. Shunday qilib kuniga minglab buyurtmali yirik do‘konni ham xizmat qilish mumkin.
Aks holda har bir to‘lov uchun alohida manzil kerak bo‘lardi. Keyin barcha mablag‘ni bitta manzilga yig‘ish uchun tarmoq komissiyasini to‘lash kerak bo‘lardi. Masalan, 100 ta manzilda 100 ta to‘lov bo‘lsa, mablag‘larni bitta manzilga yig‘ish uchun (ayirboshlash va h.k.) komissiyani 100 marta to‘lash kerak bo‘lardi (har biri 0.9$). Biz buni yuqorida tavsiflangan referens raqamlar orqali yechdik.
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! */