വേരിയബിൾ സിംബൽ — പേയ്മെന്റ് ട്രാക്ക് ചെയ്യാനുള്ള റെഫറൻസ്. പേയ്മെന്റ് ട്രാക്ക് ചെയ്യാൻ തുകയുടെ അവസാനം 4 അക്കങ്ങൾ ചേർക്കുന്നു; ഉദാ. Tron നെറ്റ്വർക്കിലെ USDT-യിൽ ഡെസിമലിന് ശേഷം 6 അക്കങ്ങൾ. ആദ്യ രണ്ട് ഉപയോഗിക്കുന്നു, ഉദാ. 10.55 (10 ഡോളർ 55 സെന്റ്), വേരിയബിൾ സിംബലോടെ 10.550001. ഇത് ഒരു സെന്റിന്റെ 1000-ൽ ഒന്ന് — വാങ്ങുന്നയാൾ അധികം അടയ്ക്കുന്നില്ല. എന്നാൽ പേയ്മെന്റ് ട്രാക്ക് ചെയ്യാം.
Merchant മോഡിൽ 10,000 കോഡുകൾ വരെ ഉപയോഗിച്ചാൽ അടുത്ത 10,000 കോഡുകൾക്കായി പുതിയ USDT വിലാസം സ്വയം ചേർക്കും — ഇങ്ങനെ തുടരും. ദിവസവും ആയിരക്കണക്കിന് ഓർഡറുള്ള വലിയ ഓൺലൈൻ സ്റ്റോറിനും ഇത് മതി.
അല്ലാത്തപക്ഷം ഓരോ പേയ്മെന്റിനും പ്രത്യേക വിലാസം വേണ്ടിവരും. പിന്നീട് എല്ലാ ഫണ്ടും ഒരു വിലാസത്തിലേക്ക് ശേഖരിക്കാൻ നെറ്റ്വർക്ക് ഫീസ് അടയ്ക്കേണ്ടിവരും. ഉദാഹരണം: 100 വിലാസങ്ങളിൽ 100 പേയ്മെന്റുകളുണ്ടെങ്കിൽ, ഒരു വിലാസത്തിലേക്ക് ഫണ്ട് ശേഖരിക്കാൻ (എക്സ്ചേഞ്ച് മുതലായവയ്ക്ക്) 100 തവണ കമ്മീഷൻ അടയ്ക്കേണ്ടി വരും (ഒരിക്കൽ 0.9$). മുകളിൽ വിവരിച്ച റെഫറൻസ് നമ്പറുകൾ കൊണ്ട് ഞങ്ങൾ ഇത് ഒഴിവാക്കി.
Your server must be able to accept a POST request to the address you specified as the webhook. Here is an example in Javascript (Express.js framework)
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;
...
We will send you an object in JSON format. The object will have the following fields, as well as a secret key. 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! */
അത്തരം ഒബ്ജക്റ്റ് ലഭിച്ച് പരിശോധിച്ച ശേഷം — ഡാറ്റാബേസിൽ ഓർഡർ അടച്ചതായി അടയാളപ്പെടുത്താം. കൂടുതൽ പൂർണ്ണമായ വിവരണമുണ്ട് ഞങ്ങളുടെ ബ്ലോഗിൽ.