











מזהה אוטומטי (VS) למספר תשלומים 
סמל משתנה — ייחוס למעקב אחרי תשלום. כדי לעקוב אחרי תשלום אנחנו מוסיפים 4 ספרות בסוף הסכום; לדוגמה, ב־USDT ברשת Tron יש 6 ספרות אחרי הנקודה. משתמשים בשתיים הראשונות, למשל 10.55 (10 דולר ו־55 סנט), ועם הסמל המשתנה זה יהיה 10.550001. בפועל זה פי 1000 פחות מסנט — הקונה לא משלם יותר. אבל אפשר לעקוב אחרי התשלום.
כשבמצב Merchant תנצלו עד 10,000 קודים, יתווסף אוטומטית כתובת USDT חדשה ל־10,000 הקודים הבאים — וכן הלאה ללא הגבלה. כך אפשר לשרת גם חנות גדולה עם אלפי הזמנות ביום.
אחרת הייתם צריכים כתובת נפרדת לכל תשלום. ואז לשלם עמלת רשת כדי לאסוף את כל הכספים לכתובת אחת. לדוגמה, אם יש לכם 100 תשלומים ב־100 כתובות, כדי לאסוף את הכספים לכתובת אחת (להחלפה וכו') הייתם צריכים לשלם עמלה 100 פעמים (0.9$ בכל פעם). עקפנו את זה עם מספרי ייחוס אלגנטיים שתוארו למעלה.
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! */