












ID aifọwọyi (VS) fun awọn sisanwo pupọ 
Àmì oníyípadà — ìtọ́kasí fún títọpasẹ̀ ìsanwó. Láti tọpasẹ̀ ìsanwó, a fi nọ́mbà 4 kun sí ìparí iye; fún àpẹẹrẹ, nínú USDT lórí blockchain Tron àwọn àmì 6 wà lẹ́yìn aami. A ń lo méjì àkọ́kọ́, fún àpẹẹrẹ 10.55 (dọ́là 10 ṣẹ́ẹ̀tì 55), pẹ̀lú àmì oníyípadà yóò jẹ́ 10.550001. Nítòótọ́ èyí kéré ní ìgbà 1000 ju ṣẹ́ẹ̀tì kan lọ — olùrà kò san ju. Ṣùgbọ́n a lè tọpasẹ̀ ìsanwó náà.
Nígbà tí o bá lo títí di kóòdù 10 000 nínú ipo Merchant, a ó fi àdírẹ́sì USDT tuntun kun fúnrarẹ̀ fún kóòdù 10 000 tókàn — bẹ́ẹ̀ lọ láìlópin. Báyìí o lè ṣe iṣẹ́ fún pàápàá ilé ìtajà online ńlá pẹ̀lú ẹgbẹẹgbẹ̀rún àṣẹ lójoojúmọ́.
Bíbẹ́ẹ̀kọ́, ìwọ yóò ní láti lo àdírẹ́sì ọtọ̀tọ̀ fún ìsanwó kọ̀ọ̀kan. Lẹ́yìn náà san owó ìpèsè blockchain láti kó gbogbo owó jọ sí àdírẹ́sì kan. Fún àpẹẹrẹ, bí o bá ní ìsanwó 100 lórí àdírẹ́sì 100, láti kó owó jọ sí àdírẹ́sì kan (fún pàṣípààrọ̀ àti bẹ́ẹ̀ lọ), ìwọ yóò ní láti san owó ìpèsè ní ìgbà 100 (0.9$ lẹ́yọ kan). A yẹ èyí kọjá pẹ̀lú àwọn nọ́mbà ìtọ́kasí tí a ṣàlàyé lókè.
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! */